예제 #1
0
 protected function setUp()
 {
     $this->pdo = Db::initDb();
     $this->urlQuery = new UrlQuery($this->pdo);
 }
예제 #2
0
#!/usr/bin/php

<?php 
use TestHelper\Db;
include __DIR__ . '/../bootstrap.php';
echo 'Resetting db... ';
unlink(APP_DATABASE_FILE);
Db::initDb(APP_DATABASE_FILE);
echo 'done.' . PHP_EOL;