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