@@ -20,15 +20,15 @@ public function it_can_serialize_an_integer()
2020 {
2121 $ driver = new VarDriver ();
2222
23- $ this ->assertEquals (" <?php return 1; " .PHP_EOL , $ driver ->serialize (1 ));
23+ $ this ->assertEquals (' <?php return 1; ' .PHP_EOL , $ driver ->serialize (1 ));
2424 }
2525
2626 /** @test */
2727 public function it_can_serialize_a_float ()
2828 {
2929 $ driver = new VarDriver ();
3030
31- $ this ->assertEquals (" <?php return 1.5; " .PHP_EOL , $ driver ->serialize (1.5 ));
31+ $ this ->assertEquals (' <?php return 1.5; ' .PHP_EOL , $ driver ->serialize (1.5 ));
3232 }
3333
3434 /** @test */
@@ -37,28 +37,28 @@ public function it_can_serialize_an_array()
3737 $ driver = new VarDriver ();
3838
3939 $ expected = implode (PHP_EOL , [
40- " <?php return array ( " ,
40+ ' <?php return array ( ' ,
4141 " 'foo' => " ,
42- " array ( " ,
42+ ' array ( ' ,
4343 " 'bar' => 'baz', " ,
44- " ), " ,
45- " ); " ,
46- "" ,
44+ ' ), ' ,
45+ ' ); ' ,
46+ '' ,
4747 ]);
4848
4949 $ this ->assertEquals ($ expected , $ driver ->serialize (['foo ' => ['bar ' => 'baz ' ]]));
50- }
50+ }
5151
5252 /** @test */
5353 public function it_can_serialize_an_object ()
5454 {
5555 $ driver = new VarDriver ();
5656
5757 $ expected = implode (PHP_EOL , [
58- " <?php return stdClass::__set_state(array( " ,
58+ ' <?php return stdClass::__set_state(array( ' ,
5959 " 'foo' => 'bar', " ,
60- " )); " ,
61- "" ,
60+ ' )); ' ,
61+ '' ,
6262 ]);
6363
6464 $ this ->assertEquals ($ expected , $ driver ->serialize ((object ) ['foo ' => 'bar ' ]));
@@ -70,10 +70,10 @@ public function it_can_serialize_a_class()
7070 $ driver = new VarDriver ();
7171
7272 $ expected = implode (PHP_EOL , [
73- " <?php return Spatie \\Snapshots \\Test \\Unit \\Drivers \\Dummy::__set_state(array( " ,
73+ ' <?php return Spatie \\Snapshots \\Test \\Unit \\Drivers \\Dummy::__set_state(array( ' ,
7474 " 'foo' => 'bar', " ,
75- " )); " ,
76- "" ,
75+ ' )); ' ,
76+ '' ,
7777 ]);
7878
7979 $ this ->assertEquals ($ expected , $ driver ->serialize (new Dummy ()));
0 commit comments