From 167a55165656ec51555bab8fde97ca58e35ea42d Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 31 Jan 2012 21:30:32 -0500 Subject: [PATCH] Fix incorrect doc block. --- lib/Cake/Network/Http/HttpSocket.php | 2 +- lib/Cake/Test/Case/Network/Http/HttpSocketTest.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Network/Http/HttpSocket.php b/lib/Cake/Network/Http/HttpSocket.php index ac6a86a30..f18e043ac 100644 --- a/lib/Cake/Network/Http/HttpSocket.php +++ b/lib/Cake/Network/Http/HttpSocket.php @@ -501,7 +501,7 @@ class HttpSocket extends CakeSocket { * urls. * * {{{ - * $http->configUri('http://www.cakephp.org'); + * $http = new HttpSocket('http://www.cakephp.org'); * $url = $http->url('/search?q=bar'); * }}} * diff --git a/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php b/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php index 2ed3c95a6..bd580cd72 100644 --- a/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php +++ b/lib/Cake/Test/Case/Network/Http/HttpSocketTest.php @@ -287,9 +287,11 @@ class HttpSocketTest extends CakeTestCase { ); $this->assertEquals($this->Socket->config, $expected); $this->assertTrue($r); + $r = $this->Socket->configUri('/this-is-broken'); $this->assertEquals($this->Socket->config, $expected); $this->assertFalse($r); + $r = $this->Socket->configUri(false); $this->assertEquals($this->Socket->config, $expected); $this->assertFalse($r);