Browse Source

[ZF-11599] Zend_Http_Client

- Added Zend_Http_Client_Adapter_Test:getConfig().

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24262 44c647ce-9c0f-0410-b52a-842ac1e357ba
ramon 14 years ago
parent
commit
d1e28587ca

+ 10 - 0
library/Zend/Http/Client/Adapter/Test.php

@@ -235,4 +235,14 @@ class Zend_Http_Client_Adapter_Test implements Zend_Http_Client_Adapter_Interfac
         }
         $this->responseIndex = $index;
     }
+
+    /**
+     * Retrieve the array of all configuration options
+     *
+     * @return array
+     */
+    public function getConfig()
+    {
+        return $this->config;
+    }
 }

+ 8 - 0
tests/Zend/Http/Client/TestAdapterTest.php

@@ -199,6 +199,14 @@ class Zend_Http_Client_TestAdapterTest extends PHPUnit_Framework_TestCase
     }
 
     /**
+     * @group ZF-11599
+     */
+    public function testGetConfig()
+    {
+        $this->assertNotNull($this->adapter->getConfig());
+    }
+
+    /**
      * Data Providers
      */