Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 15 of 15) sorted by relevance

/PHP-Parser/test/PhpParser/
H A DCodeTestParser.php53 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 DPrettyPrinterTest.php26 $this->assertSame($expected, $output, $name);
32 public function testPrettyPrint($name, $code, $expected, $mode): void { argument
39 public function testPrettyPrintFile($name, $code, $expected, $mode): void { argument
69 $expected = "<?php\n\n/**\n * This is a comment\n */\n?>\nHello World!";
70 $this->assertSame($expected, $prettyPrinter->prettyPrintFile($stmts));
78 $expected = "['key' => 'val']";
79 $this->assertSame($expected, $prettyPrinter->prettyPrintExpr($expr));
85 public function testKindAttributes($node, $expected): void { argument
88 $this->assertSame($expected, $result);
141 public function testUnnaturalLiterals($node, $expected): void { argument
[all …]
H A DNodeDumperTest.php65 $expected = <<<'OUT'
90 $this->assertSame($this->canonicalize($expected), $this->canonicalize($dump));
H A DConstExprEvaluatorTest.php10 public function testEvaluate($exprString, $expected): void { argument
14 $this->assertSame($expected, $evaluator->evaluateDirectly($expr));
H A DCodeParsingTest.php12 public function testParse($name, $code, $expected, $modeLine): void { argument
17 $this->assertSame($expected, $output, $name);
H A DNodeAbstractTest.php213 $expected = <<<'JSON'
547 $expected = $expected81;
553 $this->assertEquals(canonicalize($expected), canonicalize($json));
H A DBuilderFactoryTest.php333 $expected = <<<'EOC'
380 str_replace("\r\n", "\n", $expected),
/PHP-Parser/test/PhpParser/Node/Scalar/
H A DStringTest.php28 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 DNamespaceTest.php19 $expected = new Stmt\Namespace_(
31 $this->assertEquals($expected, $node);
39 $this->assertEquals($expected, $node);
/PHP-Parser/test/PhpParser/Node/
H A DIdentifierTest.php20 public function testIsSpecialClassName($identifier, $expected): void { argument
22 $this->assertSame($expected, $identifier->isSpecialClassName());
H A DNameTest.php150 public function testIsSpecialClassName($name, $expected): void { argument
152 $this->assertSame($expected, $name->isSpecialClassName());
/PHP-Parser/test/
H A DupdateTests.php21 foreach ($tests as list($modeLine, list($input, $expected))) {
/PHP-Parser/lib/PhpParser/
H A DParserAbstract.php430 if ($expected = $this->getExpectedTokens($state)) {
431 $expectedString = ', expecting ' . implode(' or ', $expected);
445 $expected = [];
459 if (count($expected) === 4) {
464 $expected[] = $name;
469 return $expected;
/PHP-Parser/
H A DUPGRADE-2.0.md68 * The legacy node format has been removed. If you use custom nodes, they are now expected to
H A DCHANGELOG.md871 error occurred. This made some nodes larger than expected. (#359)

Completed in 70 milliseconds