Esempio 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");
 }
Esempio 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)");
 }
Esempio n. 3
0
 function setUp()
 {
     $this->env = new TestEnv();
     $this->pdo = $this->env->pdo();
     $this->pdo->query("drop table if exists tt");
     $this->pdo->query("drop table if exists db_migrate");
     $this->app = new Application();
     $this->app->setCatchExceptions(false);
     $this->app->setAutoExit(false);
     $this->tester = new ApplicationTester($this->app);
 }
Esempio n. 4
0
 protected function setUp()
 {
     $this->env = new TestEnv();
     $this->pdo = $this->env->pdo();
 }