コード例 #1
0
 public function testExecute()
 {
     $this->createTable('foo');
     $tableExists = new TableExistsCommand();
     $result = $tableExists->setConnection($this->connection)->setEventDispatcher($this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcher'))->setTable(new Table('foo'))->execute();
     $this->assertTrue($result);
 }
コード例 #2
0
ファイル: TestCase.php プロジェクト: czogori/rentgen
 protected function tableExists($name)
 {
     $tableExists = new TableExistsCommand();
     return $tableExists->setConnection($this->connection)->setEventDispatcher($this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcher'))->setTable(new Table($name))->execute();
 }