File
- drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockBuilderTest.php, line 108
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 testOriginalConstructorCanBeDisabled() {
$spec = $this
->getMockBuilder('Mockable');
$spec
->disableOriginalConstructor();
$mock = $spec
->getMock();
$this
->assertNull($mock->constructorArgs);
}