public function testLogFileNameSanitised() { $log = new DeploynautLogFile('SomeSortOf Filename (UAT).log', $this->basePath); $this->assertEquals($log->getSanitisedLogFilePath(), $this->basePath . '/somesortof-filename-uat.log'); $log = new DeploynautLogFile('..SomeSortOf Filename_(UAT).log', $this->basePath); $this->assertEquals($log->getSanitisedLogFilePath(), $this->basePath . '/somesortof-filename-uat.log'); $log = new DeploynautLogFile('test-project.1823.log', $this->basePath); $this->assertEquals($log->getSanitisedLogFilePath(), $this->basePath . '/test-project.1823.log'); }