1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

skip tests that extend SoapClient if SoapClient does not exist

This commit is contained in:
SignpostMarv 2017-04-11 21:02:18 +01:00
parent 3c0053d431
commit 82c3a664a8

View File

@ -120,6 +120,13 @@ class MethodSignatureTest extends PHPUnit_Framework_TestCase
*/
public function testExtendDocblockParamType()
{
if (class_exists('SoapClient') === false) {
$this->markTestSkipped(
'Cannot run test, base class "SoapClient" does not exist!'
);
return;
}
$stmts = self::$parser->parse('<?php
class A extends SoapClient
{
@ -155,6 +162,13 @@ class MethodSignatureTest extends PHPUnit_Framework_TestCase
*/
public function testExtendDocblockParamTypeWithWrongParam()
{
if (class_exists('SoapClient') === false) {
$this->markTestSkipped(
'Cannot run test, base class "SoapClient" does not exist!'
);
return;
}
$stmts = self::$parser->parse('<?php
class A extends SoapClient
{