Browse Source

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 years ago
parent
commit
3893a785c3
1 changed files with 11 additions and 0 deletions
  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);
         $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
      * Internal helpder function to get the contents of test files
      *
      *