public function testInvalidQueryType() { $db = $this->_db; $this->assertException('Invalid query type `fakeType`.', function () use($db) { $db->read(new Query(array('type' => 'fakeType'))); }); }