public function Framework_MockObjectTest::testArgumentCloningOptionGeneratesUniqueMock in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php \Framework_MockObjectTest::testArgumentCloningOptionGeneratesUniqueMock()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php, line 512
Class
- Framework_MockObjectTest
- @since Class available since Release 3.0.0
Code
public function testArgumentCloningOptionGeneratesUniqueMock() {
$mockWithCloning = $this
->getMockBuilder('SomeClass')
->setMethods(array(
'doSomethingElse',
))
->enableArgumentCloning()
->getMock();
$mockWithoutCloning = $this
->getMockBuilder('SomeClass')
->setMethods(array(
'doSomethingElse',
))
->disableArgumentCloning()
->getMock();
$this
->assertNotEquals($mockWithCloning, $mockWithoutCloning);
}