TheSeer\Autoload\Factory::getCollector PHP Method

getCollector() public method

public getCollector ( )
    public function getCollector()
    {
        return new Collector($this->getParser(), $this->config->isTolerantMode(), $this->config->isTrustingMode(), $this->config->getWhitelist(), $this->config->getBlacklist());
    }

Usage Example

示例#1
0
 public function testBugIsFixed()
 {
     $config = new Config(array());
     $config->setLowercaseMode(true);
     $factory = new Factory();
     $factory->setConfig($config);
     $collector = $factory->getCollector();
     $scanner = $factory->getScanner()->getIterator(__DIR__ . '/_data/bug65');
     $collector->processDirectory($scanner);
     $result = $collector->getResult();
     $sorter = new ClassDependencySorter($result->getUnits(), $result->getDependencies());
     $expected = array('phpunit_extensions_database_testcase_trait' => __DIR__ . "/_data/bug65/trait.php", 'phpunit_extensions_database_testcase' => __DIR__ . "/_data/bug65/class.php");
     $this->assertEquals($expected, $sorter->process());
 }