1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 20:04:48 +01:00

Fix unit tests

This commit is contained in:
nikic 2011-10-26 18:35:37 +02:00
parent 25f37ccc28
commit 5f0a1535ff

View File

@ -4,9 +4,9 @@ class PHPParser_Tests_NodeTraverserTest extends PHPUnit_Framework_TestCase
{
public function getTestNode() {
return array(
new PHPParser_Node_Stmt_Namespace(array(
'name' => new PHPParser_Node_Name(array('Foo', 'Bar')),
'stmts' => array(
new PHPParser_Node_Stmt_Namespace(
new PHPParser_Node_Name(array('Foo', 'Bar')),
array(
new PHPParser_Node_Stmt_Echo(array(
new PHPParser_Node_Scalar_String('Hallo World')
)),
@ -14,7 +14,7 @@ class PHPParser_Tests_NodeTraverserTest extends PHPUnit_Framework_TestCase
new PHPParser_Node_Scalar_String('Hallo World, again!')
),
)
)),
),
);
}