public function Framework_MockObject_GeneratorTest::testGetMockCanCreateNonExistingFunctions

@covers PHPUnit_Framework_MockObject_Generator::getMock

File

drupal/core/vendor/phpunit/phpunit-mock-objects/Tests/GeneratorTest.php, line 16

Class

Framework_MockObject_GeneratorTest

Code

public function testGetMockCanCreateNonExistingFunctions() {
  $mock = PHPUnit_Framework_MockObject_Generator::getMock('StdClass', array(
    'testFunction',
  ));
  $this
    ->assertTrue(method_exists($mock, 'testFunction'));
}