to() публичный Метод

public to ( string | object | callable $handler )
$handler string | object | callable
Пример #1
0
 /**
  * @test
  * @expectedException \Prooph\ServiceBus\Exception\InvalidArgumentException
  */
 public function it_fails_when_routing_to_invalid_handler()
 {
     $router = new RegexRouter();
     $router->to(null);
 }