@@ -315,43 +315,6 @@ public function testGetBinaryBitsetBe()
315
315
$ this ->assertSame (3 , $ enumSet ->count ());
316
316
}
317
317
318
- /**
319
- * @deprecated
320
- */
321
- public function testGetBitset ()
322
- {
323
- $ enumSet = new EnumSet (Enum65::class);
324
-
325
- $ enum1 = Enum65::ONE ;
326
- $ enum2 = Enum65::TWO ;
327
- $ enum3 = Enum65::SIXTYFIVE ;
328
- $ enum4 = Enum65::SIXTYFOUR ;
329
-
330
- $ this ->assertNull ($ enumSet ->attach ($ enum1 ));
331
- $ this ->assertSame ("\x00\x00\x00\x00\x00\x00\x00\x00\x01" , $ enumSet ->getBinaryBitsetBe ());
332
- $ this ->assertTrue ($ enumSet ->contains ($ enum1 ));
333
-
334
- $ this ->assertNull ($ enumSet ->attach ($ enum2 ));
335
- $ this ->assertSame ("\x00\x00\x00\x00\x00\x00\x00\x00\x03" , $ enumSet ->getBinaryBitsetBe ());
336
- $ this ->assertTrue ($ enumSet ->contains ($ enum2 ));
337
-
338
- $ this ->assertNull ($ enumSet ->attach ($ enum3 ));
339
- $ this ->assertSame ("\x01\x00\x00\x00\x00\x00\x00\x00\x03" , $ enumSet ->getBinaryBitsetBe ());
340
- $ this ->assertTrue ($ enumSet ->contains ($ enum3 ));
341
-
342
- $ this ->assertNull ($ enumSet ->attach ($ enum4 ));
343
- $ this ->assertSame ("\x01\x80\x00\x00\x00\x00\x00\x00\x03" , $ enumSet ->getBinaryBitsetBe ());
344
- $ this ->assertTrue ($ enumSet ->contains ($ enum4 ));
345
-
346
- $ this ->assertSame (4 , $ enumSet ->count ());
347
-
348
- $ this ->assertNull ($ enumSet ->detach ($ enum2 ));
349
- $ this ->assertSame ("\x01\x80\x00\x00\x00\x00\x00\x00\x01" , $ enumSet ->getBinaryBitsetBe ());
350
- $ this ->assertFalse ($ enumSet ->contains ($ enum2 ));
351
-
352
- $ this ->assertSame (3 , $ enumSet ->count ());
353
- }
354
-
355
318
public function testSetBinaryBitsetLe ()
356
319
{
357
320
$ enumSet = new EnumSet (Enum65::class);
0 commit comments