Example #1
0
 public function testDirListContents()
 {
     $prophecy = $this->prophesize('League\\Flysystem\\FilesystemInterface');
     $prophecy->listContents('path', true)->willReturn($listing = ['listing']);
     $filesystem = $prophecy->reveal();
     $dir = new Directory(null, 'path');
     $dir->setFilesystem($filesystem);
     $output = $dir->getContents(true);
     $this->assertEquals($listing, $output);
 }