Skip to content

Commit

Permalink
improve test failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
isfedorov authored and MaXal committed Dec 18, 2020
1 parent 7c3a30a commit f6c4570
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/StubsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ public function testClassesParent(PHPClass|PHPInterface $class)
static::assertEquals(
$class->parentClass,
$stubClass->parentClass,
"Class $className should extend {$class->parentClass}"
empty($class->parentClass) ? "Class $className should not extend {$stubClass->parentClass}" :
"Class $className should extend {$class->parentClass}"
);
} else {
$stubClass = PhpStormStubsSingleton::getPhpStormStubs()->getInterface($className);
Expand Down

0 comments on commit f6c4570

Please sign in to comment.