Exemplo n.º 1
0
 protected function setUp()
 {
     $this->env = new TestEnv();
     $this->config = $this->env->config();
     $this->pdo = $this->env->pdo();
     $this->manager = new Manager($this->config, $this->env->logger());
     $this->pdo->query("drop table if exists tt");
     $this->pdo->query("drop table if exists db_migrate");
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     $this->env = new TestEnv();
     $this->pdo = $this->env->pdo();
     $this->config = $this->env->config();
     $this->executor = new Executor($this->config, $this->env->logger());
     $this->pdo->query("drop table if exists tt");
     $this->pdo->query("create table tt (id int not null primary key)");
 }