Skip to content

Commit

Permalink
Fixed compatibility with Nette\Tester 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
foxycode committed Nov 1, 2018
1 parent 11f9bab commit d67635a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestCaseRunner.php
Expand Up @@ -63,7 +63,7 @@ public function runMethod(string $method): void
throw new TestCaseException("Method {$method->getName()} is not public. Make it public or rename it.");
}

$info = \Tester\Helpers::parseDocComment($method->getDocComment()) + ['dataprovider' => NULL];
$info = \Tester\Helpers::parseDocComment($method->getDocComment() ?? '') + ['dataprovider' => NULL];

$data = [];
$defaultParams = [];
Expand Down

0 comments on commit d67635a

Please sign in to comment.