You are here

public function Framework_MockObject_GeneratorTest::testGetMockForAbstractClassStubbingAbstractClass in Zircon Profile 8

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

@covers PHPUnit_Framework_MockObject_Generator::getMockForAbstractClass

File

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

Class

Framework_MockObject_GeneratorTest

Code

public function testGetMockForAbstractClassStubbingAbstractClass() {
  $mock = $this->generator
    ->getMockForAbstractClass('AbstractMockTestClass');
  $this
    ->assertTrue(method_exists($mock, 'doSomething'));
}