コード例 #1
0
ファイル: ImageTest.php プロジェクト: n10ty/api
 public function setUp()
 {
     $this->collection = new Images();
     foreach ($this->images as $image) {
         $factory = new ImageFactory();
         $object = $factory->create($image);
         $this->collection->addImage($object);
     }
 }
コード例 #2
0
 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);
     }
 }