File
- drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockObjectTest.php, line 355
Class
- Framework_MockObjectTest
- @package PHPUnit_MockObject
@author Sebastian Bergmann <sb@sebastian-bergmann.de>
@author Patrick Mueller <elias0@gmx.net>
@author Frank Kleine <mikey@stubbles.net>
@copyright 2010-2013 Sebastian Bergmann…
Code
public function testClonedMockObjectIsNotIdenticalToOriginalOne() {
$x = $this
->getMock('stdClass');
$y = clone $x;
$mock = $this
->getMock('stdClass', array(
'foo',
));
$mock
->expects($this
->once())
->method('foo')
->with($this
->logicalNot($this
->identicalTo($x)));
$mock
->foo($y);
}