Skip to content

Commit

Permalink
Unit Test Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Feb 22, 2024
1 parent 43e1128 commit 886666d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/ColumnTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,21 @@ public function test__set_state(): void

$actual = var_export($col, true);

$expect = <<<EXPECT
\Rotexsoft\SqlSchema\Column::__set_state(array(
'name' => 'cost',
'type' => 'numeric',
'size' => 10,
'scale' => 2,
'notnull' => true,
'default' => NULL,
'autoinc' => false,
'primary' => false,
))
EXPECT;

if(PHP_MAJOR_VERSION === 8 && PHP_MINOR_VERSION === 1) {

$expect = <<<EXPECT
Rotexsoft\SqlSchema\Column::__set_state(array(
'name' => 'cost',
Expand All @@ -73,6 +88,9 @@ public function test__set_state(): void
'primary' => false,
))
EXPECT;
}


if (defined('HHVM_VERSION')) {
$expect = str_replace(' ', ' ', $expect);
}
Expand Down

0 comments on commit 886666d

Please sign in to comment.