protected function validateMustBeString($hostId) { // make sure 'hostId' is a string if (!is_string($hostId)) { throw new E4xx_IllegalHostId($this->group->getTestEnvironmentName(), $this->group->getGroupId(), $hostId); } }