/** * @return void * @covers \pFlow\Analyzer<extended> * @group pflow * @group unittest */ public function testSetSourceDirectory() { $analyzer = new Analyzer(); $analyzer->setSources(array(__DIR__ . '/data'), true); $resultFiles = $analyzer->getFiles(); $expectedFiles = array(__DIR__ . "/data/MainClass.php", __DIR__ . "/data/module1/Module1.php"); $this->assertSubset($expectedFiles, $resultFiles, "recursive file search of data directory failed"); }