@@ -20,15 +20,15 @@ public function it_can_serialize_an_integer()
20
20
{
21
21
$ driver = new VarDriver ();
22
22
23
- $ this ->assertEquals (" <?php return 1; " .PHP_EOL , $ driver ->serialize (1 ));
23
+ $ this ->assertEquals (' <?php return 1; ' .PHP_EOL , $ driver ->serialize (1 ));
24
24
}
25
25
26
26
/** @test */
27
27
public function it_can_serialize_a_float ()
28
28
{
29
29
$ driver = new VarDriver ();
30
30
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 ));
32
32
}
33
33
34
34
/** @test */
@@ -37,28 +37,28 @@ public function it_can_serialize_an_array()
37
37
$ driver = new VarDriver ();
38
38
39
39
$ expected = implode (PHP_EOL , [
40
- " <?php return array ( " ,
40
+ ' <?php return array ( ' ,
41
41
" 'foo' => " ,
42
- " array ( " ,
42
+ ' array ( ' ,
43
43
" 'bar' => 'baz', " ,
44
- " ), " ,
45
- " ); " ,
46
- "" ,
44
+ ' ), ' ,
45
+ ' ); ' ,
46
+ '' ,
47
47
]);
48
48
49
49
$ this ->assertEquals ($ expected , $ driver ->serialize (['foo ' => ['bar ' => 'baz ' ]]));
50
- }
50
+ }
51
51
52
52
/** @test */
53
53
public function it_can_serialize_an_object ()
54
54
{
55
55
$ driver = new VarDriver ();
56
56
57
57
$ expected = implode (PHP_EOL , [
58
- " <?php return stdClass::__set_state(array( " ,
58
+ ' <?php return stdClass::__set_state(array( ' ,
59
59
" 'foo' => 'bar', " ,
60
- " )); " ,
61
- "" ,
60
+ ' )); ' ,
61
+ '' ,
62
62
]);
63
63
64
64
$ this ->assertEquals ($ expected , $ driver ->serialize ((object ) ['foo ' => 'bar ' ]));
@@ -70,10 +70,10 @@ public function it_can_serialize_a_class()
70
70
$ driver = new VarDriver ();
71
71
72
72
$ 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( ' ,
74
74
" 'foo' => 'bar', " ,
75
- " )); " ,
76
- "" ,
75
+ ' )); ' ,
76
+ '' ,
77
77
]);
78
78
79
79
$ this ->assertEquals ($ expected , $ driver ->serialize (new Dummy ()));
0 commit comments