/** * @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()); }
/** * @param FileLibrary $filelib */ public function attachTo(FileLibrary $filelib) { $this->tempFiles = $filelib->getTemporaryFileManager(); }