You are here

public function Framework_MockObject_GeneratorTest::testGetMockCanCreateNonExistingFunctions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php \Framework_MockObject_GeneratorTest::testGetMockCanCreateNonExistingFunctions()

@covers PHPUnit_Framework_MockObject_Generator::getMock

File

vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php, line 26

Class

Framework_MockObject_GeneratorTest

Code

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