Ejemplo n.º 1
0
 public function setUp()
 {
     TestRequire::vfs($this);
     $this->sa = new SourceAnalyzer();
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('r'));
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     TestRequire::PDODriver($this, 'sqlite');
     Database::init($this->filename);
     Database::createTables();
     parent::setUp();
 }
Ejemplo n.º 3
0
 function setUp()
 {
     TestRequire::vfs($this);
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('r'));
     $this->fsroot = vfsStreamWrapper::getRoot();
     $this->ua = new UnitAnalyzer();
 }
Ejemplo n.º 4
0
 protected function setUp()
 {
     TestRequire::vfs($this);
     $this->fa = new FrequencyAnalyzer();
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('r'));
     $this->fs = vfsStreamWrapper::getRoot();
 }
Ejemplo n.º 5
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'));
 }
Ejemplo n.º 6
0
 public function setUp()
 {
     TestRequire::jpgraph($this);
     $this->dr = new DiagramReporter('a', 'b', 'c:f', 'd');
 }
Ejemplo n.º 7
0
 public function setUp()
 {
     TestRequire::extension($this, 'xsl');
 }