public function testDetectTypesError() { $r = new ReflectionProperty('Neevo\\Result', 'columnTypes'); $r->setAccessible(true); $this->result->getConnection()->getDriver()->setError('column-types'); $this->result->detectTypes(); $this->assertEquals(array(), $r->getValue($this->result)); }