public function __construct(FileFactory $fileFactory, DirectoryFactory $directoryFactory, BatchInterface $batch) { $this->file = $fileFactory->getInstance($batch->getDir()); $this->directoryFactory = $directoryFactory; $this->batch = $batch; }
public function testInstance() { $factory = new FileFactory('.selection'); $this->assertInstanceOf('Kompakt\\Mediameister\\Batch\\Selection\\File', $factory->getInstance(__DIR__)); }