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());
 }