Skip to content

Commit 3c7344e

Browse files
test conflict values in equals() method
1 parent b605b55 commit 3c7344e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/EnumTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,12 @@ public function testEqualsComparesProblematicValuesProperly()
242242
$this->assertFalse($emptyString->equals($null));
243243
$this->assertFalse($null->equals($false));
244244
}
245+
246+
/**
247+
* equals()
248+
*/
249+
public function testEqualsConflictValues()
250+
{
251+
$this->assertFalse(EnumFixture::FOO()->equals(EnumConflict::FOO()));
252+
}
245253
}

0 commit comments

Comments
 (0)