public function testExecuteException() { $db = $this->_db; $this->assertException('/.*/', function () use($db) { $db->read('SELECT deliberate syntax error'); }); }