File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77use Rector \Console \Formatter \ColorConsoleDiffFormatter ;
88use Rector \Console \Formatter \ConsoleDiffer ;
99use Rector \Console \Style \SymfonyStyleFactory ;
10+ use Rector \Differ \DefaultDiffer ;
1011use Rector \Util \Reflection \PrivatesAccessor ;
1112use Symfony \Component \Console \Command \Command ;
1213
6263}
6364
6465// print color diff, to make easy find the differences
65- $ consoleDiffer = new ConsoleDiffer (new ColorConsoleDiffFormatter ());
66- $ diff = $ consoleDiffer ->diff ($ output , $ expectedOutput );
66+ $ defaultDiffer = new DefaultDiffer ();
67+ $ colorConsoleDiffFormatter = new ColorConsoleDiffFormatter ();
68+ $ diff = $ colorConsoleDiffFormatter ->format ($ consoleDiffer ->diff ($ output , $ expectedOutput ));
6769$ symfonyStyle ->writeln ($ diff );
6870
6971exit (Command::FAILURE );
Original file line number Diff line number Diff line change 77use Rector \Console \Formatter \ColorConsoleDiffFormatter ;
88use Rector \Console \Formatter \ConsoleDiffer ;
99use Rector \Console \Style \SymfonyStyleFactory ;
10+ use Rector \Differ \DefaultDiffer ;
1011use Rector \Util \Reflection \PrivatesAccessor ;
1112use Symfony \Component \Console \Command \Command ;
1213
4041}
4142
4243// print color diff, to make easy find the differences
43- $ consoleDiffer = new ConsoleDiffer (new ColorConsoleDiffFormatter ());
44- $ diff = $ consoleDiffer ->diff ($ output , $ expectedOutput );
44+ $ defaultDiffer = new DefaultDiffer ();
45+ $ colorConsoleDiffFormatter = new ColorConsoleDiffFormatter ();
46+ $ diff = $ colorConsoleDiffFormatter ->format ($ consoleDiffer ->diff ($ output , $ expectedOutput ));
4547$ symfonyStyle ->writeln ($ diff );
4648
4749exit (Command::FAILURE );
You can’t perform that action at this time.
0 commit comments