Skip to content

Commit

Permalink
Update Graph tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Mar 7, 2020
1 parent 77eb6b9 commit 29f04e9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec/loophp/phptree/Exporter/GraphSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ public function getMatchers(): array
{
return [
'haveSameTextExport' => static function ($left, $right) {
$importer = new Text();
$exporter = new Graph();

$right = $exporter->export($importer->import($right));
$right = (new Graph())->export((new Text())->import($right)[0]);

return (new GraphViz())->createImageSrc($left) === (new GraphViz())->createImageSrc($right);
},
Expand Down

0 comments on commit 29f04e9

Please sign in to comment.