Example #1
0
 /**
  * Setup creates the file
  */
 public function setUp()
 {
     parent::setUp();
     $wrote = file_put_contents($this->file, "[stuff]\n" . "one=first\n" . "two=second\n" . "[trogdor]\n" . "burninate=1\n" . "killable=0\n");
     if ($wrote == 0) {
         $this->markTestSkipped("Unable to write data to test file");
         @unlink($this->file);
     }
 }
Example #2
0
 /**
  * Setup creates the file
  */
 public function setUp()
 {
     parent::setUp();
     $wrote = file_put_contents($this->file, "This is a string\nof data that is put\nin the test file");
     if ($wrote == 0) {
         $this->markTestSkipped("Unable to write data to test file");
         @unlink($this->file);
     }
 }