Skip to content

Commit 780efb8

Browse files
committed
fix(php) SupportPHP 5.6.
1 parent 6514159 commit 780efb8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

classes/test.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ public function getTestedClassName()
268268
// scores will not work.
269269
if (true === $this->breakRelationBetweenTestSuiteAndSUT &&
270270
$this instanceof PHPUnit\Framework\TestCase) {
271-
return $this->defaultTestedClassName ?? 'StdClass';
271+
return
272+
null !== $this->defaultTestedClassName
273+
? $this->defaultTestedClassName
274+
: 'StdClass';
272275
}
273276

274277
$testedClassName = parent::getTestedClassName();

0 commit comments

Comments
 (0)