Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 16 of 16) 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.php34 $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 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'
551 $expected = $expected81;
557 $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.php432 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 DUPGRADE-2.0.md68 * The legacy node format has been removed. If you use custom nodes, they are now expected to
H A DCHANGELOG.md915 error occurred. This made some nodes larger than expected. (#359)
/PHP-Parser/test/code/parser/stmt/class/
H A Dproperty_hooks.test367 Unknown hook "FOO", expected "get" or "set" from 3:20 to 3:22

Completed in 42 milliseconds