/** * @test */ public function testIsExistsAnyFileReturnArrays() { $file = new Filesystem(); $dir = static::getTempPath(__FUNCTION__); $file_inner = rand(1, 10) . rand(0, getrandmax()); $file->mkdir($dir); $this->assertTrue(empty($file->isExistsAnyFile($dir, true))); $file->touch($dir . DIRECTORY_SEPARATOR . $file_inner); $this->assertTrue(is_array($file->isExistsAnyFile($dir, true))); }