diff --git a/src/Runner/Baseline/Reader.php b/src/Runner/Baseline/Reader.php index 5f2d6e8725f..aeb640ae1ce 100644 --- a/src/Runner/Baseline/Reader.php +++ b/src/Runner/Baseline/Reader.php @@ -50,7 +50,8 @@ public function read(string $baselineFile): Baseline } catch (XmlException $e) { throw new CannotLoadBaselineException( sprintf( - 'Cannot read baseline: %s', + 'Cannot read baseline %s: %s', + $baselineFile, trim($e->getMessage()), ), ); diff --git a/tests/end-to-end/baseline/baseline-invalid-xml.phpt b/tests/end-to-end/baseline/baseline-invalid-xml.phpt index ef0ab6c91aa..4600a47f375 100644 --- a/tests/end-to-end/baseline/baseline-invalid-xml.phpt +++ b/tests/end-to-end/baseline/baseline-invalid-xml.phpt @@ -21,9 +21,7 @@ Time: %s, Memory: %s There was 1 PHPUnit test runner warning: -1) Cannot read baseline: Could not load "%sbaseline.xml": - -%snd%sag%s +1) Cannot read baseline %sbaseline.xml: %s WARNINGS! Tests: 1, Assertions: 1, Warnings: 1.