public function testFileIsDir() { $response = ['type' => 'file']; $prophecy = $this->prophesize('League\\Flysystem\\FilesystemInterface'); $prophecy->getMetadata('path.txt')->willReturn($response); $filesystem = $prophecy->reveal(); $file = new File(); $file->setPath('path.txt'); $file->setFilesystem($filesystem); $this->assertFalse($file->isDir()); }