$stream->
push(new Token(Token::TYPE_DELIMITER, '.', 2
));
$stream->
getNextIdentifierOrStar();
} public function testSkipWhitespace() { $stream =
new TokenStream();
$stream->
push($t1 =
new Token(Token::TYPE_IDENTIFIER, 'h1', 0
));
$stream->
push($t2 =
new Token(Token::TYPE_WHITESPACE, ' ', 2
));
$stream->
push($t3 =
new Token(Token::TYPE_IDENTIFIER, 'h1', 3
));
$stream->
skipWhitespace();
$this->
assertSame($t1,
$stream->
getNext());
$stream->
skipWhitespace();
$this->
assertSame($t3,
$stream->
getNext());
}}