/** * @expectedException \Novuso\System\Exception\DomainException */ public function test_that_query_map_throws_exception_when_query_class_is_invalid() { $handler = new UserByEmailHandler(); $this->queryMap->registerHandler('FooBar', $handler); }
/** * {@inheritdoc} */ public function match(Query $query) : QueryHandler { return $this->queryMap->getHandler(get_class($query)); }