Skip to content

Commit 87bbfc7

Browse files
Make messages for errors during baseline loading consistent
1 parent be53591 commit 87bbfc7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Runner/Baseline/Reader.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public function read(string $baselineFile): Baseline
5050
} catch (XmlException $e) {
5151
throw new CannotLoadBaselineException(
5252
sprintf(
53-
'Cannot read baseline: %s',
53+
'Cannot read baseline %s: %s',
54+
$baselineFile,
5455
trim($e->getMessage()),
5556
),
5657
);

tests/end-to-end/baseline/baseline-invalid-xml.phpt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ Time: %s, Memory: %s
2121

2222
There was 1 PHPUnit test runner warning:
2323

24-
1) Cannot read baseline: Could not load "%sbaseline.xml":
25-
26-
%snd%sag%s
24+
1) Cannot read baseline %sbaseline.xml: %s
2725

2826
WARNINGS!
2927
Tests: 1, Assertions: 1, Warnings: 1.

0 commit comments

Comments
 (0)