public function setHelp($help) { if (null !== $help) { Assert::string($help, 'The help text must be a string. Got: %s'); Assert::notEmpty($help, 'The help text must not be empty.'); } $this->help = $help; return $this; }
/** * @expectedException \InvalidArgumentException */ public function testSetHelpFailsIfNoString() { $this->config->setHelp(1234); }