public function testDumpMocksTo()
 {
     $targetPath = $this->createTempDir();
     $this->filesystem->touch($targetPath . DIRECTORY_SEPARATOR . 'badfile');
     $this->responseLogger->dumpMocksTo($targetPath);
     $this->assertTrue(is_file($targetPath . DIRECTORY_SEPARATOR . 'file'));
     $this->assertTrue(is_dir($targetPath . DIRECTORY_SEPARATOR . 'dir'));
     $this->assertTrue(!is_file($targetPath . DIRECTORY_SEPARATOR . 'badfile'));
     $this->filesystem->remove($targetPath);
 }
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $targetDirectory = $input->getArgument('target_directory');
     $this->responseLogger->dumpMocksTo($targetDirectory);
     return 0;
 }