You are here

public function Framework_MockObject_GeneratorTest::testGetMockForSoapClientReflectionMethodsDuplication 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::testGetMockForSoapClientReflectionMethodsDuplication()

ReflectionClass::getMethods for SoapClient on PHP 5.3 produces PHP Fatal Error @runInSeparateProcess

File

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

Class

Framework_MockObject_GeneratorTest

Code

public function testGetMockForSoapClientReflectionMethodsDuplication() {
  if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
    $this
      ->markTestSkipped('Only for PHP < 5.4.0');
  }
  $mock = $this->generator
    ->getMock('SoapClient', array(), array(), '', false);
  $this
    ->assertInstanceOf('SoapClient', $mock);
}