Skip to content

Commit

Permalink
Update expectation after update of sebastian/comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 11, 2024
1 parent 2959d06 commit ae757ff
Showing 1 changed file with 6 additions and 40 deletions.
46 changes: 6 additions & 40 deletions tests/unit/Framework/Constraint/Equality/IsEqualTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,60 +327,26 @@ public static function provider(): array
[
false,
'is equal to PHPUnit\TestFixture\EnumerationEquals\Example Enum %s (Foo)',
'Failed asserting that two objects are equal.',
<<<'EOT'
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
PHPUnit\TestFixture\EnumerationEquals\Example Object (
- 'name' => 'Foo'
+ 'name' => 'Bar'
)

EOT,
'Failed asserting that two values of enumeration PHPUnit\TestFixture\EnumerationEquals\Example are equal, Bar does not match expected Foo.',
'Failed asserting that two values of enumeration PHPUnit\TestFixture\EnumerationEquals\Example are equal, Bar does not match expected Foo.',
Example::Foo,
Example::Bar,
],

[
false,
'is equal to PHPUnit\TestFixture\EnumerationEquals\ExampleString Enum %s (Foo, \'foo\')',
'Failed asserting that two objects are equal.',
<<<'EOT'
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
PHPUnit\TestFixture\EnumerationEquals\ExampleString Object (
- 'name' => 'Foo'
- 'value' => 'foo'
+ 'name' => 'Bar'
+ 'value' => 'bar'
)

EOT,
'Failed asserting that two values of enumeration PHPUnit\TestFixture\EnumerationEquals\ExampleString are equal, Bar does not match expected Foo.',
'Failed asserting that two values of enumeration PHPUnit\TestFixture\EnumerationEquals\ExampleString are equal, Bar does not match expected Foo.',
ExampleString::Foo,
ExampleString::Bar,
],

[
false,
'is equal to PHPUnit\TestFixture\EnumerationEquals\ExampleInt Enum %s (Foo, 0)',
'Failed asserting that two objects are equal.',
<<<'EOT'
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
PHPUnit\TestFixture\EnumerationEquals\ExampleInt Object (
- 'name' => 'Foo'
- 'value' => 0
+ 'name' => 'Bar'
+ 'value' => 1
)

EOT,
'Failed asserting that two values of enumeration PHPUnit\TestFixture\EnumerationEquals\ExampleInt are equal, Bar does not match expected Foo.',
'Failed asserting that two values of enumeration PHPUnit\TestFixture\EnumerationEquals\ExampleInt are equal, Bar does not match expected Foo.',
ExampleInt::Foo,
ExampleInt::Bar,
],
Expand Down

0 comments on commit ae757ff

Please sign in to comment.