Browse Source

Fix incorrect doc block.

mark_story 14 years ago
parent
commit
167a551656

+ 1 - 1
lib/Cake/Network/Http/HttpSocket.php

@@ -501,7 +501,7 @@ class HttpSocket extends CakeSocket {
  * urls.
  * urls.
  *
  *
  * {{{
  * {{{
- * $http->configUri('http://www.cakephp.org');
+ * $http = new HttpSocket('http://www.cakephp.org');
  * $url = $http->url('/search?q=bar');
  * $url = $http->url('/search?q=bar');
  * }}}
  * }}}
  *
  *

+ 2 - 0
lib/Cake/Test/Case/Network/Http/HttpSocketTest.php

@@ -287,9 +287,11 @@ class HttpSocketTest extends CakeTestCase {
 		);
 		);
 		$this->assertEquals($this->Socket->config, $expected);
 		$this->assertEquals($this->Socket->config, $expected);
 		$this->assertTrue($r);
 		$this->assertTrue($r);
+
 		$r = $this->Socket->configUri('/this-is-broken');
 		$r = $this->Socket->configUri('/this-is-broken');
 		$this->assertEquals($this->Socket->config, $expected);
 		$this->assertEquals($this->Socket->config, $expected);
 		$this->assertFalse($r);
 		$this->assertFalse($r);
+
 		$r = $this->Socket->configUri(false);
 		$r = $this->Socket->configUri(false);
 		$this->assertEquals($this->Socket->config, $expected);
 		$this->assertEquals($this->Socket->config, $expected);
 		$this->assertFalse($r);
 		$this->assertFalse($r);