コード例 #1
0
ファイル: SATest.php プロジェクト: noseglid/phpa
 public function setUp()
 {
     TestRequire::vfs($this);
     $this->sa = new SourceAnalyzer();
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('r'));
 }
コード例 #2
0
ファイル: UATest.php プロジェクト: noseglid/phpa
 function setUp()
 {
     TestRequire::vfs($this);
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('r'));
     $this->fsroot = vfsStreamWrapper::getRoot();
     $this->ua = new UnitAnalyzer();
 }
コード例 #3
0
ファイル: FATest.php プロジェクト: noseglid/phpa
 protected function setUp()
 {
     TestRequire::vfs($this);
     $this->fa = new FrequencyAnalyzer();
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('r'));
     $this->fs = vfsStreamWrapper::getRoot();
 }
コード例 #4
0
ファイル: XMLAnalyzerTest.php プロジェクト: noseglid/phpa
 protected function setUp()
 {
     global $xml_file_data;
     TestRequire::vfs($this);
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('r'));
     $this->fs = vfsStreamWrapper::getRoot();
     $f = new vfsStreamFile('file.xml', 0664);
     $f->withContent($xml_file_data);
     $this->fs->addChild($f);
     $this->xa = new XMLAnalyzer(vfsStream::url('file.xml'));
 }