File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -214,12 +214,17 @@ public function searchProvider() {
214
214
);
215
215
}
216
216
217
+ /**
218
+ * equals()
219
+ */
217
220
public function testEquals ()
218
221
{
219
- $ enum = new EnumFixture (EnumFixture::FOO );
220
- $ this ->assertTrue ($ enum ->equals (EnumFixture::FOO ()));
222
+ $ foo = new EnumFixture (EnumFixture::FOO );
223
+ $ number = new EnumFixture (EnumFixture::NUMBER );
224
+ $ anotherFoo = new EnumFixture (EnumFixture::FOO );
221
225
222
- $ enum = new EnumFixture (EnumFixture::PROBLEMATIC_BOOLEAN_FALSE );
223
- $ this ->assertFalse ($ enum ->equals (EnumFixture::PROBLEMATIC_EMPTY_STRING ()));
226
+ $ this ->assertTrue ($ foo ->equals ($ foo ));
227
+ $ this ->assertFalse ($ foo ->equals ($ number ));
228
+ $ this ->assertTrue ($ foo ->equals ($ anotherFoo ));
224
229
}
225
230
}
You can’t perform that action at this time.
0 commit comments