mirror of
https://github.com/danog/PHP-Parser.git
synced 2025-01-20 12:46:47 +01:00
Rename tests from Unit_ to PHPParser_Tests_
This commit is contained in:
parent
818eb3940b
commit
1da728321f
@ -12,7 +12,7 @@
|
||||
bootstrap="./test/bootstrap.php">
|
||||
<testsuites>
|
||||
<testsuite name="PHPParser Test Suite">
|
||||
<directory>./test/Unit/</directory>
|
||||
<directory>./test/</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class Unit_LexerTest extends PHPUnit_Framework_TestCase
|
||||
class PHPParser_Tests_LexerTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider provideTestError
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class Unit_NodeDumperTest extends PHPUnit_Framework_TestCase
|
||||
class PHPParser_Tests_NodeDumperTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @dataProvider provideTestDump
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
class Unit_NodeTraverserTest extends PHPUnit_Framework_TestCase
|
||||
class PHPParser_Tests_NodeTraverserTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
function getTestNode() {
|
||||
return array(
|
||||
@ -23,7 +23,7 @@ class Unit_NodeTraverserTest extends PHPUnit_Framework_TestCase
|
||||
function testTraverse() {
|
||||
$node = $this->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
|
Loading…
x
Reference in New Issue
Block a user