function testWriteUntouchedFiles()
 {
     $handler = new CoverageDataHandler($this->tempdb());
     $handler->createSchema();
     $handler->writeUntouchedFile('bluejay');
     $handler->writeUntouchedFile('robin');
     $this->assertEqual(array('bluejay', 'robin'), $handler->readUntouchedFiles());
 }
Exemplo n.º 2
0
 public function resetLog()
 {
     error_log('reseting log');
     $new_file = fopen($this->log, "w");
     if (!$new_file) {
         throw new Exception("Could not create " . $this->log);
     }
     fclose($new_file);
     if (!chmod($this->log, 0666)) {
         throw new Exception("Could not change ownership on file  " . $this->log);
     }
     $handler = new CoverageDataHandler($this->log);
     $handler->createSchema();
 }
Exemplo n.º 3
0
 public function resetLog()
 {
     // echo 'Resting Code-Coverage Logfile: ' . $this->log;
     $new_file = fopen($this->log, 'w');
     if (!$new_file) {
         throw new Exception("Could not create " . $this->log);
     }
     fclose($new_file);
     if (!chmod($this->log, 0666)) {
         throw new Exception("Could not change ownership on file  " . $this->log);
     }
     $handler = new CoverageDataHandler($this->log);
     $handler->createSchema();
 }