Mercurial > hg > isophonics-drupal-site
diff vendor/sebastian/comparator/src/ComparisonFailure.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/vendor/sebastian/comparator/src/ComparisonFailure.php Mon Apr 23 09:33:26 2018 +0100 +++ b/vendor/sebastian/comparator/src/ComparisonFailure.php Mon Apr 23 09:46:53 2018 +0100 @@ -1,6 +1,6 @@ <?php /* - * This file is part of the Comparator package. + * This file is part of sebastian/comparator. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * @@ -11,6 +11,7 @@ namespace SebastianBergmann\Comparator; use SebastianBergmann\Diff\Differ; +use SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder; /** * Thrown when an assertion for string equality failed. @@ -19,24 +20,28 @@ { /** * Expected value of the retrieval which does not match $actual. + * * @var mixed */ protected $expected; /** * Actually retrieved value which does not match $expected. + * * @var mixed */ protected $actual; /** * The string representation of the expected value + * * @var string */ protected $expectedAsString; /** * The string representation of the actual value + * * @var string */ protected $actualAsString; @@ -49,6 +54,7 @@ /** * Optional message which is placed in front of the first line * returned by toString(). + * * @var string */ protected $message; @@ -114,7 +120,7 @@ return ''; } - $differ = new Differ("\n--- Expected\n+++ Actual\n"); + $differ = new Differ(new UnifiedDiffOutputBuilder("\n--- Expected\n+++ Actual\n")); return $differ->diff($this->expectedAsString, $this->actualAsString); }