Pantheon\Terminus\FeatureTests\FeatureContext::iShouldGetOneOfTheFollowing PHP Method

iShouldGetOneOfTheFollowing() public method

public iShouldGetOneOfTheFollowing ( [array] $list_string ) : [boolean]
$list_string [array]
return [boolean]
    public function iShouldGetOneOfTheFollowing($list_string)
    {
        $strings = explode(',', $list_string);
        foreach ($strings as $string) {
            if ($this->checkResult(trim((string) $string), $this->output)) {
                return true;
            }
        }
        throw new \Exception("Actual output:\n" . $this->output);
    }