public function Framework_MockObjectTest::testMockClassOnlyGeneratedOnce in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php \Framework_MockObjectTest::testMockClassOnlyGeneratedOnce()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php, line 303
Class
- Framework_MockObjectTest
- @since Class available since Release 3.0.0
Code
public function testMockClassOnlyGeneratedOnce() {
$mock1 = $this
->getMock('AnInterface');
$mock2 = $this
->getMock('AnInterface');
$this
->assertEquals(get_class($mock1), get_class($mock2));
}