public function Framework_MockObject_GeneratorTest::testGetMockForTraitStubbingAbstractMethod in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php \Framework_MockObject_GeneratorTest::testGetMockForTraitStubbingAbstractMethod()
@covers PHPUnit_Framework_MockObject_Generator::getMockForTrait @requires PHP 5.4.0
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ GeneratorTest.php, line 150
Class
Code
public function testGetMockForTraitStubbingAbstractMethod() {
$mock = $this->generator
->getMockForTrait('AbstractTrait');
$this
->assertTrue(method_exists($mock, 'doSomething'));
}