public function setHandlerMethod($handlerMethod) { Assert::string($handlerMethod, 'The handler method must be a string. Got: %s'); Assert::notEmpty($handlerMethod, 'The handler method must not be empty.'); $this->handlerMethod = $handlerMethod; return $this; }
/** * @expectedException \InvalidArgumentException */ public function testSetHandlerMethodFailsIfNoString() { $this->config->setHandlerMethod(1234); }