/**
  * Test zones instance
  */
 public function testZonesInstance()
 {
     $zones = $this->infrastructure->zonesInstance();
     $this->assertTrue($this->infrastructure->isSuccessful());
     $this->assertTrue(is_array($zones));
     $this->assertTrue(in_array(Rackspace::RACKSPACE_ZONE_UK, $zones));
     $this->assertTrue(in_array(Rackspace::RACKSPACE_ZONE_USA, $zones));
 }
Exemple #2
0
 /**
  * Test zones instance
  */
 public function testZonesInstance()
 {
     $zones = $this->infrastructure->zonesInstance();
     $this->assertTrue($this->infrastructure->isSuccessful());
     $this->assertTrue(is_array($zones));
     $this->assertEquals(4, count($zones));
     $this->assertEquals('us-east-1a', $zones[0][Instance::INSTANCE_ZONE]);
     $this->assertEquals('us-east-1b', $zones[1][Instance::INSTANCE_ZONE]);
     $this->assertEquals('us-east-1c', $zones[2][Instance::INSTANCE_ZONE]);
     $this->assertEquals('us-east-1d', $zones[3][Instance::INSTANCE_ZONE]);
 }