@@ -369,60 +369,60 @@ public function test_it_will_return_the_host_correct_format(): void
369369
370370 public function test_it_can_handle_null_bytes_in_fragment (): void
371371 {
372- $ url1 = new Url (" https://example.com " );
372+ $ url1 = new Url (' https://example.com ' );
373373 $ url2 = $ url1 ->withFragment ("frag \0ment " );
374374
375- self ::assertSame (" frag%00ment " , $ url2 ->getFragment ());
376- self ::assertSame (" https://example.com/#frag%00ment " , $ url2 ->toAsciiString ());
375+ self ::assertSame (' frag%00ment ' , $ url2 ->getFragment ());
376+ self ::assertSame (' https://example.com/#frag%00ment ' , $ url2 ->toAsciiString ());
377377 }
378378
379379 public function test_it_can_handle_null_bytes_in_query (): void
380380 {
381- $ url1 = new Url (" https://example.com " );
381+ $ url1 = new Url (' https://example.com ' );
382382 $ url2 = $ url1 ->withQuery ("f \0o=bar&baz=q \0x " );
383383
384- self ::assertSame (" f%00o=bar&baz=q%00x " , $ url2 ->getQuery ());
385- self ::assertSame (" https://example.com/?f%00o=bar&baz=q%00x " , $ url2 ->toAsciiString ());
384+ self ::assertSame (' f%00o=bar&baz=q%00x ' , $ url2 ->getQuery ());
385+ self ::assertSame (' https://example.com/?f%00o=bar&baz=q%00x ' , $ url2 ->toAsciiString ());
386386 }
387387
388388 public function test_it_can_handle_null_bytes_in_path (): void
389389 {
390- $ url1 = new Url (" https://example.com " );
390+ $ url1 = new Url (' https://example.com ' );
391391 $ url2 = $ url1 ->withPath ("/p \0th \0" );
392392
393- self ::assertSame (" /p%00th%00 " , $ url2 ->getPath ());
394- self ::assertSame (" https://example.com/p%00th%00 " , $ url2 ->toAsciiString ());
393+ self ::assertSame (' /p%00th%00 ' , $ url2 ->getPath ());
394+ self ::assertSame (' https://example.com/p%00th%00 ' , $ url2 ->toAsciiString ());
395395 }
396396
397397 public function test_it_can_handle_null_bytes_in_password (): void
398398 {
399- $ url1 = new Url (" https://example.com " );
399+ $ url1 = new Url (' https://example.com ' );
400400 $ url2 = $ url1 ->withPassword ("pass \0word " );
401401
402- self ::assertSame (" pass%00word " , $ url2 ->getPassword ());
403- self ::
assertSame (
" https://:pass%[email protected] / " ,
$ url2->
toAsciiString ());
402+ self ::assertSame (' pass%00word ' , $ url2 ->getPassword ());
403+ self ::
assertSame (
' https://:pass%[email protected] / ' ,
$ url2->
toAsciiString ());
404404 }
405405
406406 public function test_it_can_handle_null_bytes_in_username (): void
407407 {
408- $ url1 = new Url (" https://example.com " );
408+ $ url1 = new Url (' https://example.com ' );
409409 $ url2 = $ url1 ->withUsername ("usern \0me " );
410410
411- self ::assertSame (" usern%00me " , $ url2 ->getUsername ());
412- self ::
assertSame (
" https://usern%[email protected] / " ,
$ url2->
toAsciiString ());
411+ self ::assertSame (' usern%00me ' , $ url2 ->getUsername ());
412+ self ::
assertSame (
' https://usern%[email protected] / ' ,
$ url2->
toAsciiString ());
413413 }
414414
415415 public function test_it_cannot_handle_null_bytes_in_host (): void
416416 {
417- $ url1 = new Url (" https://example.com " );
417+ $ url1 = new Url (' https://example.com ' );
418418 $ this ->expectException (InvalidUrlException::class);
419419
420420 $ url1 ->withHost ("usern \0me " );
421421 }
422422
423423 public function test_it_cannot_handle_null_bytes_in_scheme (): void
424424 {
425- $ url1 = new Url (" https://example.com " );
425+ $ url1 = new Url (' https://example.com ' );
426426 $ this ->expectException (InvalidUrlException::class);
427427
428428 $ url1 ->withScheme ("usern \0me " );
0 commit comments