Lines Matching refs:keyword
22 public function testReplaceKeywords(string $keyword, int $expectedToken): void { argument
24 $code = '<?php ' . $keyword;
27 new Token($expectedToken, $keyword, 1, 6),
35 public function testReplaceKeywordsUppercase(string $keyword, int $expectedToken): void { argument
37 $code = '<?php ' . strtoupper($keyword);
41 new Token($expectedToken, \strtoupper($keyword), 1, 6),
49 public function testNoReplaceKeywordsAfterObjectOperator(string $keyword): void { argument
51 $code = '<?php ->' . $keyword;
56 new Token(\T_STRING, $keyword, 1, 8),
64 public function testNoReplaceKeywordsAfterObjectOperatorWithSpaces(string $keyword): void { argument
66 $code = '<?php -> ' . $keyword;
72 new Token(\T_STRING, $keyword, 1, 12),
80 public function testNoReplaceKeywordsAfterNullsafeObjectOperator(string $keyword): void { argument
82 $code = '<?php ?->' . $keyword;
87 new Token(\T_STRING, $keyword, 1, 9),