protected function setUp() { if (!$this->db) { $this->db = makeDB(); } if (!$this->db) { $this->markTestSkipped('Не настроено подключение к БД'); } $this->db->drop('test')->execute(); $this->db->create('test')->addId()->addChar('name')->addTimeCreated()->execute(); for ($i = 1; $i <= 20; $i++) { $this->db->insert('test')->setArray(array('name' => 'Item #' . $i))->execute(); } }