File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -87,18 +87,6 @@ public function detach($enumerator)
8787 parent ::detach ($ enumeration ::get ($ enumerator ));
8888 }
8989
90- /**
91- * Get a unique identifier for the given enumerator
92- * @param Enum|null|boolean|int|float|string $enumerator
93- * @return string
94- * @throws InvalidArgumentException On an invalid given enumerator
95- */
96- public function getHash ($ enumerator )
97- {
98- $ enumeration = $ this ->enumeration ;
99- return spl_object_hash ($ enumeration ::get ($ enumerator ));
100- }
101-
10290 /**
10391 * Test if the given enumerator exists
10492 * @param Enum|null|boolean|int|float|string $enumerator
Original file line number Diff line number Diff line change @@ -62,13 +62,11 @@ public function testBasicWithConstantValuesAsEnums()
6262 $ this ->assertNull ($ enumMap ->attach ($ enum1 , $ value1 ));
6363 $ this ->assertTrue ($ enumMap ->contains ($ enum1 ));
6464 $ this ->assertSame ($ value1 , $ enumMap [$ enum1 ]);
65- $ this ->assertSame (spl_object_hash (EnumBasic::ONE ()), $ enumMap ->getHash ($ enum1 ));
6665
6766 $ this ->assertFalse ($ enumMap ->contains ($ enum2 ));
6867 $ this ->assertNull ($ enumMap ->attach ($ enum2 , $ value2 ));
6968 $ this ->assertTrue ($ enumMap ->contains ($ enum2 ));
7069 $ this ->assertSame ($ value2 , $ enumMap [$ enum2 ]);
71- $ this ->assertSame (spl_object_hash (EnumBasic::TWO ()), $ enumMap ->getHash ($ enum2 ));
7270
7371 $ this ->assertNull ($ enumMap ->detach ($ enum1 ));
7472 $ this ->assertFalse ($ enumMap ->contains ($ enum1 ));
You can’t perform that action at this time.
0 commit comments