Example #1
0
 public function read()
 {
     $pr = new Project();
     if ($pr->exists()) {
         $pr->drop()->yesImSure();
     }
     $pr->createTable();
     #if(!$pr->exists()){
     $pr->drop()->yesImSure();
     $pr->createTable();
     #}
     return parent::read();
 }
Example #2
0
 public function __construct()
 {
     $this->pdo = PHPUnit_Util_PDO::factory('mysql:host=localhost;dbname=testing_c3op');
     Project::createTable($this->pdo);
 }