ÿØÿà JFIF ÿþ; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 157.90.209.209 / Your IP : 216.73.216.129 [ Web Server : Apache System : Linux hcomm124.dns-wk.info 4.18.0-553.64.1.el8_10.x86_64 #1 SMP Mon Jul 28 12:01:56 EDT 2025 x86_64 User : evidenciarevista ( 1049) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Domains : 216 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/evidenciarevista/admin/vendor/nikic/php-parser/test/PhpParser/ |
Upload File : |
<?php namespace PhpParser; class NodeDumperTest extends \PHPUnit_Framework_TestCase { private function canonicalize($string) { return str_replace("\r\n", "\n", $string); } /** * @dataProvider provideTestDump * @covers PhpParser\NodeDumper::dump */ public function testDump($node, $dump) { $dumper = new NodeDumper; $this->assertSame($this->canonicalize($dump), $this->canonicalize($dumper->dump($node))); } public function provideTestDump() { return array( array( array(), 'array( )' ), array( array('Foo', 'Bar', 'Key' => 'FooBar'), 'array( 0: Foo 1: Bar Key: FooBar )' ), array( new Node\Name(array('Hallo', 'World')), 'Name( parts: array( 0: Hallo 1: World ) )' ), array( new Node\Expr\Array_(array( new Node\Expr\ArrayItem(new Node\Scalar\String_('Foo')) )), 'Expr_Array( items: array( 0: Expr_ArrayItem( key: null value: Scalar_String( value: Foo ) byRef: false ) ) )' ), ); } /** * @expectedException \InvalidArgumentException * @expectedExceptionMessage Can only dump nodes and arrays. */ public function testError() { $dumper = new NodeDumper; $dumper->dump(new \stdClass); } }