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:
parent
3c0053d431
commit
82c3a664a8
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user