public function testGetErrors() { // INFO: run all previous tests and generate some errors $error = $this->db->lastError(); self::assertEquals(true, is_string($error)); self::assertContains('Unknown column \'page_lall\' in \'field list', $error); $errors = $this->db->getErrors(); self::assertEquals(true, is_array($errors)); self::assertContains('Unknown column \'page_lall\' in \'field list', $errors[0]); }