DataSift\Storyplayer\DefinitionLib\TestEnvironment_RolesValidator::validateMustBeArray PHP Method

validateMustBeArray() protected method

make sure that the roles are an array
protected validateMustBeArray ( mixed $roles ) : void
$roles mixed the roles to check
return void
    protected function validateMustBeArray($roles)
    {
        if (!is_array($roles)) {
            throw new E4xx_IllegalRolesList($this->host->getTestEnvironmentName(), $this->host->getGroupId(), $this->host->getHostId(), $roles);
        }
    }