public function setUp()
 {
     parent::setUp();
     $projectZip = dirname(dirname(__DIR__)) . '/samples/project.zip';
     $zip = new \ZipArchive();
     if ($zip->open($projectZip) !== true) {
         throw new \Exception("Unable to unpack sample project!");
     }
     $zip->extractTo($this->tempDir);
     $zip->close();
     $this->projectFiles = $this->getEntriesRecursive('', $this->tempDir);
 }
 public function setUp()
 {
     parent::setUp();
     $this->includes = array('dir1' . DIRECTORY_SEPARATOR . 'test1.php', 'dir2', 'dir2' . DIRECTORY_SEPARATOR . 'test1.php', 'dir2' . DIRECTORY_SEPARATOR . 'test2.php');
     foreach ($this->includes as $include) {
         $fullPath = $this->tempDir . '/' . $include;
         if (preg_match("/\\.php\$/", $include)) {
             $dir = dirname($include);
             if ($dir && !file_exists($this->tempDir . '/' . $dir)) {
                 mkdir($this->tempDir . '/' . $dir);
             }
             touch($fullPath);
             continue;
         }
         mkdir($fullPath);
     }
 }