DeploynautLogFile::content PHP Метод

content() публичный Метод

Return the content of the log file.
public content ( ) : string
Результат string
    public function content()
    {
        return $this->exists() ? file_get_contents($this->getLogFilePath()) : 'Log has not been created yet.';
    }

Usage Example

 public function testLogDoesntExistMessage()
 {
     $log = new DeploynautLogFile('SomeSortOf Filename (UAT).log', $this->basePath);
     $this->assertNull($log->getLogFilePath());
     $this->assertEquals('Log has not been created yet.', $log->content());
 }