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(); }
public function __construct() { $this->pdo = PHPUnit_Util_PDO::factory('mysql:host=localhost;dbname=testing_c3op'); Project::createTable($this->pdo); }