Skip to content

Commit cfdb240

Browse files
Sync with change in sebastian/diff
1 parent 76fc2dd commit cfdb240

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Framework/TestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
use SebastianBergmann\Comparator\Comparator;
9797
use SebastianBergmann\Comparator\Factory as ComparatorFactory;
9898
use SebastianBergmann\Diff\Differ;
99+
use SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder;
99100
use SebastianBergmann\Exporter\Exporter;
100101
use SebastianBergmann\GlobalState\ExcludeList as GlobalStateExcludeList;
101102
use SebastianBergmann\GlobalState\Restorer;
@@ -1890,7 +1891,7 @@ private function compareGlobalStateSnapshots(Snapshot $before, Snapshot $after):
18901891
private function compareGlobalStateSnapshotPart(array $before, array $after, string $header): void
18911892
{
18921893
if ($before != $after) {
1893-
$differ = new Differ($header);
1894+
$differ = new Differ(new UnifiedDiffOutputBuilder($header));
18941895
$exporter = new Exporter;
18951896

18961897
$diff = $differ->diff(

0 commit comments

Comments
 (0)