Esempio n. 1
0
 public function testGlobFindsFiles()
 {
     file_put_contents(__DIR__ . '/foo.txt', 'foo');
     file_put_contents(__DIR__ . '/bar.txt', 'bar');
     $files = new Filesystem();
     $glob = $files->glob(__DIR__ . '/*.txt');
     $this->assertContains(__DIR__ . '/foo.txt', $glob);
     $this->assertContains(__DIR__ . '/bar.txt', $glob);
     @unlink(__DIR__ . '/foo.txt');
     @unlink(__DIR__ . '/bar.txt');
 }