public function Framework_MockObject_GeneratorTest::testGetMockForAbstractClassWithNonExistentMethods in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php \Framework_MockObject_GeneratorTest::testGetMockForAbstractClassWithNonExistentMethods()
@covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ GeneratorTest.php, line 63
Class
Code
public function testGetMockForAbstractClassWithNonExistentMethods() {
$mock = $this->generator
->getMockForAbstractClass('AbstractMockTestClass', array(), '', true, true, true, array(
'nonexistentMethod',
));
$this
->assertTrue(method_exists($mock, 'nonexistentMethod'));
$this
->assertTrue(method_exists($mock, 'doSomething'));
}