Lines Matching refs:expected
31 protected function doTestPrettyPrintMethod($method, $name, $code, $expected, $modeLine) { argument
34 $this->assertSame($expected, $output, $name);
40 public function testPrettyPrint($name, $code, $expected, $mode): void { argument
41 $this->doTestPrettyPrintMethod('prettyPrint', $name, $code, $expected, $mode);
47 public function testPrettyPrintFile($name, $code, $expected, $mode): void { argument
48 $this->doTestPrettyPrintMethod('prettyPrintFile', $name, $code, $expected, $mode);
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
152 $this->assertSame($expected, $result);
191 …public function testFormatPreservingPrint($name, $code, $modification, $expected, $modeLine): void… argument
214 $this->assertSame(canonicalize($expected), canonicalize($newCode), $name);
224 public function testRoundTripPrint($name, $code, $expected, $modeLine): void { argument