예제 #1
0
 public function testCallForwarder()
 {
     $manager = new MountManager();
     $mock = Mockery::mock('League\\Flysystem\\FilesystemInterface');
     $mock->shouldReceive('aMethodCall')->once()->andReturn('a result');
     $manager->mountFilesystem('prot', $mock);
     $this->assertEquals($manager->aMethodCall('prot://file.ext'), 'a result');
 }