public function setProcessTitle($processTitle) { if (null !== $processTitle) { Assert::string($processTitle, 'The command process title must be a string or null. Got: %s'); Assert::notEmpty($processTitle, 'The command process title must not be empty.'); } $this->processTitle = $processTitle; return $this; }
/** * @expectedException \InvalidArgumentException */ public function testSetProcessTitleFailsIfNotString() { $this->config->setProcessTitle(1234); }