public function testGetArgsCreatesFilesAndReturnsRandomExt()
{
$e = new ConcernedAboutSeparation($this->filesystem, $this->faker, $this->parser);
$args = $e->getArgs();
$path = $args[0];
$this->assertFileExists($path);
$files = ["learnyouphp.dat", "learnyouphp.txt", "learnyouphp.sql", "api.html", "README.md", "CHANGELOG.md", "LICENCE.md", "md", "data.json", "data.dat", "words.dat", "w00t.dat", "w00t.txt", "wrrrrongdat", "dat"];
array_walk($files, function ($file) use($path) {
$this->assertFileExists(sprintf('%s/%s', $path, $file));
});
$extensions = array_unique(array_map(function ($file) {
return pathinfo($file, PATHINFO_EXTENSION);
}, $files));
$this->assertTrue(in_array($args[1], $extensions));
}