Home
last modified time | relevance | path

Searched refs:expectedTokens (Results 1 – 2 of 2) sorted by relevance

/PHP-Parser/test/PhpParser/
H A DLexerTest.php58 public function testLex($code, $expectedTokens): void { argument
66 $expectedToken = array_shift($expectedTokens);
102 $expectedTokens = [
117 $this->assertEquals($expectedTokens, $lexer->tokenize($code));
/PHP-Parser/test/PhpParser/Lexer/
H A DEmulativeTest.php121 private function assertSameTokens(array $expectedTokens, array $tokens): void { argument
129 $this->assertSame($expectedTokens, $reducedTokens);
135 public function testLexNewFeatures(string $code, array $expectedTokens): void { argument
137 $this->assertSameTokens($expectedTokens, $lexer->tokenize('<?php ' . $code));
433 … public function testTargetVersion(string $phpVersion, string $code, array $expectedTokens): void { argument
435 $this->assertSameTokens($expectedTokens, $lexer->tokenize('<?php ' . $code));

Completed in 9 milliseconds