File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -297,19 +297,21 @@ private function assertJsonEqualsJson($json1, $json2)
297
297
298
298
public function testSerialize ()
299
299
{
300
- $ this ->assertEquals (
301
- '4f3a33303a224d79434c6162735c54657374735c456e756d5c456e756d46697874757265223a313a7b733a383a22002a0076616c7565223b733a333a22666f6f223b7d ' ,
302
- bin2hex (serialize (EnumFixture::FOO ()))
303
- );
300
+ // split string for Pretty CI: "Line exceeds 120 characters"
301
+ $ bin = '4f3a33303a224d79434c6162735c54657374735c456e756d5c456e756d4669787 ' .
302
+ '4757265223a313a7b733a383a22002a0076616c7565223b733a333a22666f6f223b7d ' ;
303
+
304
+ $ this ->assertEquals ($ bin , bin2hex (serialize (EnumFixture::FOO ())));
304
305
}
305
306
306
307
public function testUnserialize ()
307
308
{
309
+ // split string for Pretty CI: "Line exceeds 120 characters"
310
+ $ bin = '4f3a33303a224d79434c6162735c54657374735c456e756d5c456e756d4669787 ' .
311
+ '4757265223a313a7b733a383a22002a0076616c7565223b733a333a22666f6f223b7d ' ;
312
+
308
313
/* @var $value EnumFixture */
309
- $ value = unserialize (pack (
310
- 'H* ' ,
311
- '4f3a33303a224d79434c6162735c54657374735c456e756d5c456e756d46697874757265223a313a7b733a383a22002a0076616c7565223b733a333a22666f6f223b7d '
312
- ));
314
+ $ value = unserialize (pack ('H* ' , $ bin ));
313
315
314
316
$ this ->assertEquals (EnumFixture::FOO , $ value ->getValue ());
315
317
$ this ->assertTrue (EnumFixture::FOO ()->equals ($ value ));
You can’t perform that action at this time.
0 commit comments