/** * Wait n seconds for status change * * @param string $status * @param integer $timeout * @return boolean */ protected static function waitForStatus($status,$timeout=TESTS_ZEND_SERVICE_RACKSPACE_TIMEOUT) { $info['status']= null; $i=0; while ((strtoupper($info['status'])!==strtoupper($status)) && ($i<$timeout)) { $info= self::$rackspace->getServerInfo(self::$serverId); $i+=5; sleep(5); } return ($i<$timeout); }