コード例 #1
0
 public function testAddingFloat()
 {
     $blueprint = new Blueprint('users');
     $blueprint->float('foo', 5, 2);
     $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar());
     $this->assertEquals(1, count($statements));
     $this->assertEquals('alter table "users" add "foo" float not null', $statements[0]);
 }