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