diff --git a/tests/MountManagerTests.php b/tests/MountManagerTests.php index 269e80c73..f62a87a10 100644 --- a/tests/MountManagerTests.php +++ b/tests/MountManagerTests.php @@ -209,9 +209,9 @@ public function provideMountSchemas() public function testMountSchemaTypes($schema) { $manager = new MountManager(); - $mock = $this->getMockBuilder('League\Flysystem\Filesystem')->disableOriginalConstructor()->getMock(); - $mock->method('read')->with('file.ext')->willReturn('a result'); - $manager->mountFilesystem($schema, $mock); + $mock = $this->prophesize(FilesystemInterface::class); + $mock->read('file.ext')->willReturn('a result'); + $manager->mountFilesystem($schema, $mock->reveal()); $this->assertEquals($manager->read($schema . '://file.ext'), 'a result'); }