1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Merge pull request #135 from SignpostMarv/phpunit-failure

Phpunit failure
This commit is contained in:
Matthew Brown 2017-04-11 17:05:21 -04:00 committed by GitHub
commit e694719272
3 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
vendor/
.DS_Store
phpunit.xml

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
{