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)); }
/** * Function for DfFile write * @param string $text */ private function writeLine($text) { $this->logFile->write($text); }