Exemple #1
0
 /**
  * @todo are the dummy values for user and key okay?
  */
 public function setUp()
 {
     $this->rackspace = new Servers('foo', 'bar');
     $this->httpClientAdapterTest = new HttpTest();
     $this->rackspace->getHttpClient()->setAdapter($this->httpClientAdapterTest);
     // authentication (from a file)
     $this->httpClientAdapterTest->setResponse(self::loadResponse('../../_files/testAuthenticate'));
     $this->assertTrue($this->rackspace->authenticate(), 'Authentication failed');
     // load the HTTP response (from a file)
     $this->httpClientAdapterTest->setResponse($this->loadResponse($this->getName()));
 }
Exemple #2
0
 /**
  * Test authentication
  */
 public function testAuthentication()
 {
     $this->assertTrue(self::$rackspace->authenticate());
 }
Exemple #3
0
 /**
  * Test authentication
  */
 public function testAuthentication()
 {
     $this->filename = __METHOD__;
     $this->assertTrue(self::$rackspace->authenticate());
 }