示例#1
0
 /**
  * @test
  */
 public function tempDirAcceptsObject()
 {
     $tfm = new TemporaryFileManager(sys_get_temp_dir());
     $filelib = new FileLibrary($this->prophesize(StorageAdapter::class)->reveal(), $this->prophesize(BackendAdapter::class)->reveal(), $this->prophesize(EventDispatcherInterface::class)->reveal(), $tfm);
     $this->assertSame($tfm, $filelib->getTemporaryFileManager());
 }
示例#2
0
 /**
  * @param FileLibrary $filelib
  */
 public function attachTo(FileLibrary $filelib)
 {
     $this->tempFiles = $filelib->getTemporaryFileManager();
 }