public function Framework_MockBuilderTest::testProvidesAFluentInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/tests/MockBuilderTest.php \Framework_MockBuilderTest::testProvidesAFluentInterface()
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockBuilderTest.php, line 96
Class
- Framework_MockBuilderTest
- @since File available since Release 1.0.0
Code
public function testProvidesAFluentInterface() {
$spec = $this
->getMockBuilder('Mockable')
->setMethods(array(
'mockableMethod',
))
->setConstructorArgs(array())
->setMockClassName('DummyClassName')
->disableOriginalConstructor()
->disableOriginalClone()
->disableAutoload();
$this
->assertTrue($spec instanceof PHPUnit_Framework_MockObject_MockBuilder);
}