/**
  * when output folder exists but is not a folder then throw InvalidPathException
  */
 public function testWhenOutputFolderExistsButIsNotAFolderThenThrowInvalidPathException()
 {
     $this->setupSystemMock(true, false, '/file-output');
     $worker = new Application();
     try {
         $worker->output('/file-output');
         $this->fail();
     } catch (InvalidPathException $e) {
         $this->assertEquals('Path /file-output is invalid.', $e->getMessage());
     }
 }