Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Test cases for #100
Browse files Browse the repository at this point in the history
  • Loading branch information
edorian committed Oct 15, 2012
1 parent 67e7f00 commit 2a23783
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Tests/MockObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,20 @@ public function testGetMockForAbstractClass()
->method('doSomething');
}

public function testClonedMockObjectShouldStillEqualTheOriginal()
{
$a = $this->getMock('stdClass');
$b = clone $a;
$this->assertEquals($a, $b);
}

public function testMockObjectsConstructedIndepentantlyShouldNotEqual()
{
$a = $this->getMock('stdClass');
$b = $this->getMock('stdClass');
$this->assertNotEquals($a,$b);
}

public function testStaticMethodCallWithArgumentCloningEnabled()
{
$expectedObject = new StdClass;
Expand Down

0 comments on commit 2a23783

Please sign in to comment.