diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 48dc197..3587a90 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -12,7 +12,7 @@ bootstrap="./test/bootstrap.php"> - ./test/Unit/ + ./test/ diff --git a/test/Unit/LexerTest.php b/test/PHPParser/Tests/LexerTest.php similarity index 97% rename from test/Unit/LexerTest.php rename to test/PHPParser/Tests/LexerTest.php index bb47204..881de37 100644 --- a/test/Unit/LexerTest.php +++ b/test/PHPParser/Tests/LexerTest.php @@ -1,6 +1,6 @@ getTestNode(); - $visitor = new Unit_NodeVisitor; + $visitor = new PHPParser_Tests_NodeVisitor; $traverser = new PHPParser_NodeTraverser; $traverser->addVisitor($visitor); @@ -61,7 +61,7 @@ class Unit_NodeTraverserTest extends PHPUnit_Framework_TestCase function testModifyingTraverse() { $node = $this->getTestNode(); - $visitor = new Unit_ModifyingNodeVisitor; + $visitor = new PHPParser_Tests_ModifyingNodeVisitor; $traverser = new PHPParser_NodeTraverser; $traverser->addVisitor($visitor); @@ -80,7 +80,7 @@ class Unit_NodeTraverserTest extends PHPUnit_Framework_TestCase } } -class Unit_NodeVisitor extends PHPParser_NodeVisitorAbstract +class PHPParser_Tests_NodeVisitor extends PHPParser_NodeVisitorAbstract { public $beforeTraverseNode; public $enteredNodes; @@ -108,7 +108,7 @@ class Unit_NodeVisitor extends PHPParser_NodeVisitorAbstract } } -class Unit_ModifyingNodeVisitor extends PHPParser_NodeVisitorAbstract +class PHPParser_Tests_ModifyingNodeVisitor extends PHPParser_NodeVisitorAbstract { public function leaveNode(PHPParser_NodeAbstract &$node) { // delete namespace nodes by merging them