You are here

public function Framework_MockObject_GeneratorTest::testGetMockForAbstractClassDoesNotFailWhenFakingInterfaces in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php \Framework_MockObject_GeneratorTest::testGetMockForAbstractClassDoesNotFailWhenFakingInterfaces()

@covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass

File

vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php, line 45

Class

Framework_MockObject_GeneratorTest

Code

public function testGetMockForAbstractClassDoesNotFailWhenFakingInterfaces() {
  $mock = $this->generator
    ->getMockForAbstractClass('Countable');
  $this
    ->assertTrue(method_exists($mock, 'count'));
}