コード例 #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->adapter->execute("SET GLOBAL innodb_lock_wait_timeout=3");
     $this->adapter->execute("SET GLOBAL lock_wait_timeout=3");
     $this->origin = new \Phinx\Db\Table('ponies');
     $migration = new InitialMigration(time());
     $migration->setAdapter($this->adapter);
     $migration->up();
     $invoker = new Invoker($this->adapter, $this->origin);
     $this->destination = $invoker->temporaryTable();
     $this->switcher = new LockedSwitcher($this->adapter, $this->origin, $this->destination);
 }
コード例 #2
0
ファイル: LhmTest.php プロジェクト: tristanpemble/lhm_php
 protected function tearDown()
 {
     unset($this->environment, $this->migration);
     parent::tearDown();
 }