Przeglądaj źródła

Added test case for ZF-11598

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24298 44c647ce-9c0f-0410-b52a-842ac1e357ba
ezimuel 14 lat temu
rodzic
commit
3893a785c3
1 zmienionych plików z 11 dodań i 0 usunięć
  1. 11 0
      tests/Zend/Http/Client/CommonHttpTests.php

+ 11 - 0
tests/Zend/Http/Client/CommonHttpTests.php

@@ -1186,6 +1186,17 @@ abstract class Zend_Http_Client_CommonHttpTests extends PHPUnit_Framework_TestCa
         $this->assertNotContains('Content-Type: text/plain', $request);
 
     }
+    
+    /**
+     * @group ZF-11598
+     */
+    public function testGetAdapterWithoutSet()
+    {
+        $client  = new Zend_Http_Client(null, $this->config);
+        $adapter = $client->getAdapter();
+        $this->assertTrue(!empty($adapter));
+    }
+    
     /**
      * Internal helpder function to get the contents of test files
      *