Searched refs:expectedTokens (Results 1 – 2 of 2) sorted by relevance
58 public function testLex($code, $expectedTokens): void { argument66 $expectedToken = array_shift($expectedTokens);102 $expectedTokens = [117 $this->assertEquals($expectedTokens, $lexer->tokenize($code));
121 private function assertSameTokens(array $expectedTokens, array $tokens): void { argument129 $this->assertSame($expectedTokens, $reducedTokens);135 public function testLexNewFeatures(string $code, array $expectedTokens): void { argument137 $this->assertSameTokens($expectedTokens, $lexer->tokenize('<?php ' . $code));433 … public function testTargetVersion(string $phpVersion, string $code, array $expectedTokens): void { argument435 $this->assertSameTokens($expectedTokens, $lexer->tokenize('<?php ' . $code));
Completed in 5 milliseconds