class LocaleScannerTest extends TestCase
{ private string
$directory;
private Filesystem
$filesystem;
private LocaleScanner
$scanner;
protected function setUp(): void
{ $this->directory =
sys_get_temp_dir().'/LocaleScannerTest/'.
mt_rand(1000, 9999
);
$this->filesystem =
new Filesystem();
$this->scanner =
new LocaleScanner();
$this->filesystem->
mkdir($this->directory
);
$this->filesystem->
touch($this->directory.'/en.txt'
);
$this->filesystem->
touch($this->directory.'/en_alias.txt'
);
$this->filesystem->
touch($this->directory.'/en_child.txt'
);
$this->filesystem->
touch($this->directory.'/de.txt'
);
$this->filesystem->
touch($this->directory.'/de_alias.txt'
);
$this->filesystem->
touch($this->directory.'/de_child.txt'
);
$this->filesystem->
touch($this->directory.'/fr.txt'
);
$this->filesystem->
touch($this->directory.'/fr_alias.txt'
);