public function setUp() { $this->collection = new Images(); foreach ($this->images as $image) { $factory = new ImageFactory(); $object = $factory->create($image); $this->collection->addImage($object); } }
public function setUp() { $client = new Client(new ApiToken('abcdef')); $this->collection = new Images(); foreach ($this->images as $image) { $factory = new ImageFactory($client->getHttpClient()); $object = $factory->create($image); $this->collection->addImage($object); } }