Esempio n. 1
0
 public function testGetSql()
 {
     $table = new Table('foo');
     $createTableCommand = new CreateTableCommand();
     $createTableCommand->setTable($table);
     $sql = 'CREATE TABLE "public"."foo"(foo_id serial NOT NULL,CONSTRAINT foo_pkey PRIMARY KEY (foo_id));';
     $this->assertEquals($sql, $createTableCommand->getSql());
 }