public function Framework_MockObjectTest::testOriginalConstructorSettingConsidered

File

drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockObjectTest.php, line 264

Class

Framework_MockObjectTest
@package PHPUnit_MockObject @author Sebastian Bergmann <sb@sebastian-bergmann.de> @author Patrick Mueller <elias0@gmx.net> @author Frank Kleine <mikey@stubbles.net> @copyright 2010-2013 Sebastian Bergmann…

Code

public function testOriginalConstructorSettingConsidered() {
  $mock1 = $this
    ->getMock('PartialMockTestClass');
  $mock2 = $this
    ->getMock('PartialMockTestClass', array(), array(), '', FALSE);
  $this
    ->assertTrue($mock1->constructorCalled);
  $this
    ->assertFalse($mock2->constructorCalled);
}