Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

try fix for hhvm

  • Loading branch information...
commit 95e2e84cbd81ba36abb13629390121154de07d52 1 parent 60f0922
@pmjones pmjones authored
Showing with 15 additions and 5 deletions.
  1. +15 −5 tests/src/ColumnTest.php
View
20 tests/src/ColumnTest.php
@@ -62,10 +62,20 @@ public function test__set_state()
$info['primary']
);
- eval('$actual = ' . var_export($col, true) . ';');
-
- foreach ($info as $key => $expect) {
- $this->assertSame($expect, $actual->$key);
- }
+ $actual = var_export($col, true);
+ $expect = <<<EXPECT
+Aura\Sql_Schema\Column::__set_state(array(
+ 'name' => 'cost',
+ 'type' => 'numeric',
+ 'size' => 10,
+ 'scale' => 2,
+ 'notnull' => true,
+ 'default' => NULL,
+ 'autoinc' => false,
+ 'primary' => false,
+))
+EXPECT;
+
+ $this->assertSame($expect, $actual);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.