DeploynautLogFile::exists PHP Method

exists() public method

Does the log file exist?
public exists ( ) : boolean
return boolean
    public function exists()
    {
        return (bool) $this->getLogFilePath();
    }

Usage Example

 public function testLogWriting()
 {
     $log = new DeploynautLogFile('SomeSortOf Filename (UAT).log', $this->basePath);
     $this->assertFalse($log->exists());
     $this->assertNull($log->getLogFilePath());
     $log->write('This is some content');
     $this->assertTrue($log->exists());
     $this->assertEquals($this->basePath . '/somesortof-filename-uat.log', $log->getLogFilePath());
     $this->assertContains('This is some content', $log->content());
 }