protected function setUp() { parent::setUp(); define('MODEL_DIR', 'Test\\Model'); if (!class_exists('\\Test\\Model\\Project')) { $this->project = new class extends ModelEx { protected $table = 'projects'; protected $primaryKey = 'project_id'; }; class_alias(get_class($this->project), '\\Test\\Model\\Project'); } if (!class_exists('\\Test\\Model\\Comment')) { $this->comment = new class extends ModelEx { protected $table = 'comments'; protected $primaryKey = 'comment_id'; }; class_alias(get_class($this->comment), '\\Test\\Model\\Comment'); } if (!class_exists('\\Test\\Model\\Detail')) { $this->detail = new class extends ModelEx { protected $table = 'details'; protected $primaryKey = 'detail_id'; }; class_alias(get_class($this->detail), '\\Test\\Model\\Detail'); } }
protected function setUp() { parent::setUp(); $this->loadData(__DIR__ . '/../Autoresponder.sql'); }