From 1da728321fed17cd01dabeabbd9efe8d313549fc Mon Sep 17 00:00:00 2001 From: nikic Date: Wed, 10 Aug 2011 11:13:37 +0200 Subject: [PATCH] Rename tests from Unit_ to PHPParser_Tests_ --- phpunit.xml.dist | 2 +- test/{Unit => PHPParser/Tests}/LexerTest.php | 2 +- test/{Unit => PHPParser/Tests}/NodeDumperTest.php | 2 +- test/{Unit => PHPParser/Tests}/NodeTraverserTest.php | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) rename test/{Unit => PHPParser/Tests}/LexerTest.php (97%) rename test/{Unit => PHPParser/Tests}/NodeDumperTest.php (93%) rename test/{Unit => PHPParser/Tests}/NodeTraverserTest.php (90%) 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