test/ComposerRequireCheckerTest/NodeVisitor/DefinedSymbolCollectorFunctionalTest.php 1 location
|
@@ 38-46 (lines=9) @@
|
| 35 |
|
/** |
| 36 |
|
* {@inheritDoc} |
| 37 |
|
*/ |
| 38 |
|
protected function setUp() |
| 39 |
|
{ |
| 40 |
|
$this->collector = new DefinedSymbolCollector(); |
| 41 |
|
$this->parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); |
| 42 |
|
$this->traverser = new NodeTraverser(); |
| 43 |
|
|
| 44 |
|
$this->traverser->addVisitor(new NameResolver()); |
| 45 |
|
$this->traverser->addVisitor($this->collector); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
public function testWillCollectSymbolsDefinedInThisFile() |
| 49 |
|
{ |
test/ComposerRequireCheckerTest/NodeVisitor/UsedSymbolCollectorFunctionalTest.php 1 location
|
@@ 38-46 (lines=9) @@
|
| 35 |
|
/** |
| 36 |
|
* {@inheritDoc} |
| 37 |
|
*/ |
| 38 |
|
protected function setUp() |
| 39 |
|
{ |
| 40 |
|
$this->collector = new UsedSymbolCollector(); |
| 41 |
|
$this->parser = (new ParserFactory())->create(ParserFactory::PREFER_PHP7); |
| 42 |
|
$this->traverser = new NodeTraverser(); |
| 43 |
|
|
| 44 |
|
$this->traverser->addVisitor(new NameResolver()); |
| 45 |
|
$this->traverser->addVisitor($this->collector); |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
public function testWillCollectSymbolsUsedInThisFile() |
| 49 |
|
{ |