File
- drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockBuilderTest.php, line 92
Class
- Framework_MockBuilderTest
- @package PHPUnit_MockObject
@author Giorgio Sironi <piccoloprincipeazzurro@gmail.com>
@author Sebastian Bergmann <sb@sebastian-bergmann.de>
@copyright 2010-2013 Sebastian Bergmann <sb@sebastian-bergmann.de>
@license …
Code
public function testMockClassNameCanBeSpecified() {
$spec = $this
->getMockBuilder('Mockable');
$spec
->setMockClassName('ACustomClassName');
$mock = $spec
->getMock();
$this
->assertTrue($mock instanceof ACustomClassName);
}