Skip to content
Permalink
Browse files

Check for Soap before running method call test

Fixes #1554
  • Loading branch information...
muglug committed Apr 13, 2019
1 parent f3b605e commit d377bbde2bf8580d14c77d5d1ab09486b02c1c5e
Showing with 20 additions and 4 deletions.
  1. +20 −4 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',
'<?php
new SoapFault("1", "faultstring", "faultactor");'
);
$this->analyzeFile('somefile.php', new \Psalm\Context());
}
/**
* @return iterable<string,array{string,assertions?:array<string,string>,error_levels?:string[]}>
*/
@@ -318,10 +338,6 @@ function foo(DateTime $d1, DateTime $d2) : void {
);
}'
],
'soapFaultConstruct' => [
'<?php
new SoapFault("1", "faultstring", "faultactor");'
],
];
}

0 comments on commit d377bbd

Please sign in to comment.
You can’t perform that action at this time.