public function Framework_MockBuilderTest::testConstructorArgumentsCanBeSpecified

File

drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/MockBuilderTest.php, line 100

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 testConstructorArgumentsCanBeSpecified() {
  $spec = $this
    ->getMockBuilder('Mockable');
  $spec
    ->setConstructorArgs($expected = array(
    23,
    42,
  ));
  $mock = $spec
    ->getMock();
  $this
    ->assertEquals($expected, $mock->constructorArgs);
}