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"); }
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)"); }
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); }
protected function setUp() { $this->env = new TestEnv(); $this->pdo = $this->env->pdo(); }