Esempio n. 1
0
 /**
  * @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);
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function match(Query $query) : QueryHandler
 {
     return $this->queryMap->getHandler(get_class($query));
 }