mageekguy\atoum\php\tokenizer::nextTokenIs PHP Method

nextTokenIs() private method

private nextTokenIs ( $tokenName, array $skipedTags = [T_WHITESPACE, T_COMMENT, T_INLINE_HTML] )
$skipedTags array
    private function nextTokenIs($tokenName, array $skipedTags = array(T_WHITESPACE, T_COMMENT, T_INLINE_HTML))
    {
        $key = $this->tokens->key() + 1;
        while (isset($this->tokens[$key]) === true && in_array($this->tokens[$key], $skipedTags) === true) {
            $key++;
        }
        $key++;
        return isset($this->tokens[$key]) === true && $this->tokens[$key][0] === $tokenName;
    }