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);
 }
Exemple #2
0
 protected function tearDown()
 {
     unset($this->environment, $this->migration);
     parent::tearDown();
 }