/PHP-Parser/test/PhpParser/ |
H A D | CodeTestParser.php | 53 private function extractMode(string $expected): array { argument 54 $firstNewLine = strpos($expected, "\n"); 56 $firstNewLine = strlen($expected); 59 $firstLine = substr($expected, 0, $firstNewLine); 61 return [$expected, null]; 64 $expected = (string) substr($expected, $firstNewLine + 1); 65 return [$expected, substr($firstLine, 2)];
|
H A D | PrettyPrinterTest.php | 34 $this->assertSame($expected, $output, $name); 40 public function testPrettyPrint($name, $code, $expected, $mode): void { argument 47 public function testPrettyPrintFile($name, $code, $expected, $mode): void { argument 77 $expected = "<?php\n\n/**\n * This is a comment\n */\n?>\nHello World!"; 78 $this->assertSame($expected, $prettyPrinter->prettyPrintFile($stmts)); 86 $expected = "['key' => 'val']"; 87 $this->assertSame($expected, $prettyPrinter->prettyPrintExpr($expr)); 93 public function testKindAttributes($node, $expected): void { argument 96 $this->assertSame($expected, $result); 149 public function testUnnaturalLiterals($node, $expected): void { argument [all …]
|
H A D | NodeDumperTest.php | 65 $expected = <<<'OUT' 90 $this->assertSame($this->canonicalize($expected), $this->canonicalize($dump));
|
H A D | ConstExprEvaluatorTest.php | 10 public function testEvaluate($exprString, $expected): void { argument 14 $this->assertSame($expected, $evaluator->evaluateDirectly($expr));
|
H A D | CodeParsingTest.php | 12 public function testParse($name, $code, $expected, $modeLine): void { argument 17 $this->assertSame($expected, $output, $name);
|
H A D | NodeAbstractTest.php | 213 $expected = <<<'JSON' 551 $expected = $expected81; 557 $this->assertEquals(canonicalize($expected), canonicalize($json));
|
H A D | BuilderFactoryTest.php | 333 $expected = <<<'EOC' 380 str_replace("\r\n", "\n", $expected),
|
/PHP-Parser/test/PhpParser/Node/Scalar/ |
H A D | StringTest.php | 28 public function testParseEscapeSequences($expected, $string, $quote): void { argument 30 $expected, 38 public function testCreate($expected, $string): void { argument 40 $expected,
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | NamespaceTest.php | 19 $expected = new Stmt\Namespace_( 31 $this->assertEquals($expected, $node); 39 $this->assertEquals($expected, $node);
|
/PHP-Parser/test/PhpParser/Node/ |
H A D | IdentifierTest.php | 20 public function testIsSpecialClassName($identifier, $expected): void { argument 22 $this->assertSame($expected, $identifier->isSpecialClassName());
|
H A D | NameTest.php | 150 public function testIsSpecialClassName($name, $expected): void { argument 152 $this->assertSame($expected, $name->isSpecialClassName());
|
/PHP-Parser/test/ |
H A D | updateTests.php | 21 foreach ($tests as list($modeLine, list($input, $expected))) {
|
/PHP-Parser/lib/PhpParser/ |
H A D | ParserAbstract.php | 432 if ($expected = $this->getExpectedTokens($state)) { 433 $expectedString = ', expecting ' . implode(' or ', $expected); 447 $expected = []; 461 if (count($expected) === 4) { 466 $expected[] = $name; 471 return $expected;
|
/PHP-Parser/ |
H A D | UPGRADE-2.0.md | 68 * The legacy node format has been removed. If you use custom nodes, they are now expected to
|
H A D | CHANGELOG.md | 915 error occurred. This made some nodes larger than expected. (#359)
|
/PHP-Parser/test/code/parser/stmt/class/ |
H A D | property_hooks.test | 367 Unknown hook "FOO", expected "get" or "set" from 3:20 to 3:22
|