예제 #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
 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'));
 }