protected function dbfixt($tables) { // $this->dbfixt('table1', 'table2', ...)という形式もサポート $tables = is_string($tables) ? func_get_args() : $tables; foreach ($tables as $table => $file) { $fixt_name = $file . '_fixt'; $this->{$fixt_name} = DbFixture::load($table, $file); } }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); DbFixture::load('forms', 'form'); }