Beispiel #1
0
 public function testRead()
 {
     $file = new DfFile(DfTests::$testDir . 'DfFileTest.txt');
     $this->assertEquals("true\n", $file->read());
     $file = new DfFile('');
     $this->assertEquals(false, $file->read());
 }
Beispiel #2
0
 /**
  * Function for DfFile write
  * @param string $text
  */
 private function writeLine($text)
 {
     $this->logFile->write($text);
 }