Example #1
0
 /**
  * Get the progress's status
  * 
  * @return integer|boolean
  */
 public function getProgress()
 {
     $data= $this->service->getImage($this->id);
     if ($data!==false) {
         $data= $data->toArray();
         $this->progress= $data['progress'];
         return $this->progress;
     }
     return false;
 }
Example #2
0
 /**
  * Test get image info
  */
 public function testGetImageInfo()
 {
     $image = $this->rackspace->getImage(self::$images[0]->getId())->toArray();
     $this->assertTrue(is_array($image) && !empty($image));
     $this->assertEquals($image['id'], self::$images[0]->getId());
 }
Example #3
0
 /**
  * Test get image
  */
 public function testGetImage()
 {
     $image= self::$images[0];
     $getImage= self::$rackspace->getImage($image->getId());
     $this->assertEquals($getImage->getId(),$image->getId());
 }