Skip to content

Commit

Permalink
fix(php) SupportPHP 5.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Dec 15, 2017
1 parent 6514159 commit 780efb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,10 @@ public function getTestedClassName()
// scores will not work.
if (true === $this->breakRelationBetweenTestSuiteAndSUT &&
$this instanceof PHPUnit\Framework\TestCase) {
return $this->defaultTestedClassName ?? 'StdClass';
return
null !== $this->defaultTestedClassName
? $this->defaultTestedClassName
: 'StdClass';
}

$testedClassName = parent::getTestedClassName();
Expand Down

0 comments on commit 780efb8

Please sign in to comment.