nirvanix->getService('Foo'); $this->assertTrue($base instanceof Zend_Service_Nirvanix_Namespace_Base); } public function testFactoryReturnsImfsSubclassForImfsNamespace() { $imfs = $this->nirvanix->getService('IMFS'); $this->assertTrue($imfs instanceof Zend_Service_Nirvanix_Namespace_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']); } }