nirvanix->getService('Foo'); $this->assertType('Zend_Service_Nirvanix_Namespace_Base', $base); } public function testFactoryReturnsImfsSubclassForImfsNamespace() { $imfs = $this->nirvanix->getService('IMFS'); $this->assertType('Zend_Service_Nirvanix_Namespace_Imfs', $imfs); } public function testFactoryPassesHttpClientInstanceWithOptions() { $nirvanixOptions = $this->nirvanix->getOptions(); $this->assertSame($this->httpClient, $nirvanixOptions['httpClient']); $foo = $this->nirvanix->getService('Foo'); $fooOptions = $foo->getOptions(); $this->assertSame($this->httpClient, $nirvanixOptions['httpClient']); } // getOptions() public function testGetOptionsReturnsOptions() { $options = $this->nirvanix->getOptions(); $this->assertSame($this->httpClient, $options['httpClient']); } }