Skip to content

Commit 81aef30

Browse files
authored
Merge pull request #57 from burrelle/tests/update-for-7.3
Update VarDriverTest for PHP 7.3
2 parents 45ea365 + b2feaee commit 81aef30

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/Unit/Drivers/VarDriverTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ public function it_can_serialize_an_object()
6161
'',
6262
]);
6363

64+
if (version_compare(PHP_VERSION, '7.3.0') >= 0) {
65+
$expected = implode(PHP_EOL, [
66+
'<?php return (object) array(',
67+
" 'foo' => 'bar',",
68+
');',
69+
'',
70+
]);
71+
}
72+
6473
$this->assertEquals($expected, $driver->serialize((object) ['foo' => 'bar']));
6574
}
6675

0 commit comments

Comments
 (0)