We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bc2bbe commit eee0755Copy full SHA for eee0755
src/Util/Test.php
@@ -471,10 +471,9 @@ public static function getDataFromTestWithAnnotation($docComment)
471
$dataSet = json_decode($candidateRow, true);
472
473
if (json_last_error() != JSON_ERROR_NONE) {
474
- $error = function_exists('json_last_error_msg') ? json_last_error_msg() : json_last_error();
475
476
throw new PHPUnit_Framework_Exception(
477
- 'The dataset for the @testWith annotation cannot be parsed: ' . $error
+ 'The dataset for the @testWith annotation cannot be parsed: ' . json_last_error_msg()
478
);
479
}
480
0 commit comments