@@ -261,25 +261,25 @@ public function testGetBitset()
261261 $ enum4 = Enum65::SIXTYFOUR ;
262262
263263 $ this ->assertNull ($ enumSet ->attach ($ enum1 ));
264- $ this ->assertSame (' 000000000000000001 ' , \bin2hex ( $ enumSet ->getBitset () ));
264+ $ this ->assertSame ("\x00\x00\x00\x00\x00\x00\x00\x00\x01" , $ enumSet ->getBitset ());
265265 $ this ->assertTrue ($ enumSet ->contains ($ enum1 ));
266266
267267 $ this ->assertNull ($ enumSet ->attach ($ enum2 ));
268268 $ this ->assertSame ('000000000000000003 ' , \bin2hex ($ enumSet ->getBitset ()));
269269 $ this ->assertTrue ($ enumSet ->contains ($ enum2 ));
270270
271271 $ this ->assertNull ($ enumSet ->attach ($ enum3 ));
272- $ this ->assertSame (' 010000000000000003 ' , \bin2hex ( $ enumSet ->getBitset () ));
272+ $ this ->assertSame ("\x01\x00\x00\x00\x00\x00\x00\x00\x03" , $ enumSet ->getBitset ());
273273 $ this ->assertTrue ($ enumSet ->contains ($ enum3 ));
274274
275275 $ this ->assertNull ($ enumSet ->attach ($ enum4 ));
276- $ this ->assertSame (' 018000000000000003 ' , \bin2hex ( $ enumSet ->getBitset () ));
276+ $ this ->assertSame ("\x01\x80\x00\x00\x00\x00\x00\x00\x03" , $ enumSet ->getBitset ());
277277 $ this ->assertTrue ($ enumSet ->contains ($ enum4 ));
278278
279279 $ this ->assertSame (4 , $ enumSet ->count ());
280280
281281 $ this ->assertNull ($ enumSet ->detach ($ enum2 ));
282- $ this ->assertSame (' 018000000000000001 ' , \bin2hex ( $ enumSet ->getBitset () ));
282+ $ this ->assertSame ("\x01\x80\x00\x00\x00\x00\x00\x00\x01" , $ enumSet ->getBitset ());
283283 $ this ->assertFalse ($ enumSet ->contains ($ enum2 ));
284284
285285 $ this ->assertSame (3 , $ enumSet ->count ());
@@ -288,7 +288,7 @@ public function testGetBitset()
288288 public function testSetBitset ()
289289 {
290290 $ enumSet = new EnumSet ('MabeEnumTest\TestAsset\Enum65 ' );
291- $ enumSet ->setBitset (\hex2bin ( ' 018000000000000001 ' ) );
291+ $ enumSet ->setBitset ("\x01\x80\x00\x00\x00\x00\x00\x00\x01" );
292292
293293 $ this ->assertTrue ($ enumSet ->contains (Enum65::ONE ));
294294 $ this ->assertFalse ($ enumSet ->contains (Enum65::TWO ));
@@ -300,15 +300,15 @@ public function testSetBitset()
300300 public function testSetBitsetShort ()
301301 {
302302 $ enumSet = new EnumSet ('MabeEnumTest\TestAsset\Enum65 ' );
303- $ enumSet ->setBitset (\hex2bin ( ' 0A ' ) );
304- $ this ->assertSame (' 00000000000000000a ' , \bin2hex ( $ enumSet ->getBitset () ));
303+ $ enumSet ->setBitset ("\x0A" );
304+ $ this ->assertSame ("\x00\x00\x00\x00\x00\x00\x00\x00\x0A" , $ enumSet ->getBitset ());
305305 }
306306
307307 public function testSetBitsetLong ()
308308 {
309309 $ enumSet = new EnumSet ('MabeEnumTest\TestAsset\EnumBasic ' );
310- $ enumSet ->setBitset (\hex2bin ( ' FFFFFFFFFF0A ' ) );
311- $ this ->assertSame (' ff0a ' , \bin2hex ( $ enumSet ->getBitset () ));
310+ $ enumSet ->setBitset ("\xFF\xFF\xFF\xFF\xFF\x0A" );
311+ $ this ->assertSame ("\xFF\x0A" , $ enumSet ->getBitset ());
312312 }
313313
314314 public function testFalseBitsetArgumentExceptionIfNotString ()
0 commit comments