Skip to content

Commit b2feaee

Browse files
author
Evan Burrell
authored
Update VarDriverTest for PHP 7.3
Update using version compare for greater than 7.3.0
1 parent 45ea365 commit b2feaee

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)