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)
87
87
parent ::detach ($ enumeration ::get ($ enumerator ));
88
88
}
89
89
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
-
102
90
/**
103
91
* Test if the given enumerator exists
104
92
* @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()
62
62
$ this ->assertNull ($ enumMap ->attach ($ enum1 , $ value1 ));
63
63
$ this ->assertTrue ($ enumMap ->contains ($ enum1 ));
64
64
$ this ->assertSame ($ value1 , $ enumMap [$ enum1 ]);
65
- $ this ->assertSame (spl_object_hash (EnumBasic::ONE ()), $ enumMap ->getHash ($ enum1 ));
66
65
67
66
$ this ->assertFalse ($ enumMap ->contains ($ enum2 ));
68
67
$ this ->assertNull ($ enumMap ->attach ($ enum2 , $ value2 ));
69
68
$ this ->assertTrue ($ enumMap ->contains ($ enum2 ));
70
69
$ this ->assertSame ($ value2 , $ enumMap [$ enum2 ]);
71
- $ this ->assertSame (spl_object_hash (EnumBasic::TWO ()), $ enumMap ->getHash ($ enum2 ));
72
70
73
71
$ this ->assertNull ($ enumMap ->detach ($ enum1 ));
74
72
$ this ->assertFalse ($ enumMap ->contains ($ enum1 ));
You can’t perform that action at this time.
0 commit comments