From d377bbde2bf8580d14c77d5d1ab09486b02c1c5e Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Sat, 13 Apr 2019 13:53:08 -0400 Subject: [PATCH] Check for Soap before running method call test Fixes #1554 --- tests/MethodCallTest.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/tests/MethodCallTest.php b/tests/MethodCallTest.php index 22696986b..e2e19e623 100644 --- a/tests/MethodCallTest.php +++ b/tests/MethodCallTest.php @@ -6,6 +6,26 @@ class MethodCallTest extends TestCase use Traits\InvalidCodeAnalysisTestTrait; use Traits\ValidCodeAnalysisTestTrait; + /** + * @return void + */ + public function testExtendDocblockParamType() + { + if (class_exists('SoapClient') === false) { + $this->markTestSkipped('Cannot run test, base class "SoapClient" does not exist!'); + + return; + } + + $this->addFile( + 'somefile.php', + 'analyzeFile('somefile.php', new \Psalm\Context()); + } + /** * @return iterable,error_levels?:string[]}> */ @@ -318,10 +338,6 @@ class MethodCallTest extends TestCase ); }' ], - 'soapFaultConstruct' => [ - '