public function content() { return $this->exists() ? file_get_contents($this->getLogFilePath()) : 'Log has not been created yet.'; }
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()); }