X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=blobdiff_plain;f=tests%2Fhttp%2FHttpUtils%2FGetHttpUrlTest.php;fp=tests%2FHttpUtils%2FGetHttpUrlTest.php;h=3dc5bc9b03c38c9b0cad7763b2578b6e0ed017c5;hp=ea53de5f27feabec829489c442c728bf5b661cf4;hb=51753e403fa69c0ce124ede27d300477e3e799ca;hpb=fb1b182fbf0ee5afed586f77eec84d7a906831ef diff --git a/tests/HttpUtils/GetHttpUrlTest.php b/tests/http/HttpUtils/GetHttpUrlTest.php similarity index 85% rename from tests/HttpUtils/GetHttpUrlTest.php rename to tests/http/HttpUtils/GetHttpUrlTest.php index ea53de5f..3dc5bc9b 100644 --- a/tests/HttpUtils/GetHttpUrlTest.php +++ b/tests/http/HttpUtils/GetHttpUrlTest.php @@ -3,12 +3,14 @@ * HttpUtils' tests */ -require_once 'application/HttpUtils.php'; +namespace Shaarli\Http; + +require_once 'application/http/HttpUtils.php'; /** * Unitary tests for get_http_response() */ -class GetHttpUrlTest extends PHPUnit_Framework_TestCase +class GetHttpUrlTest extends \PHPUnit\Framework\TestCase { /** * Get an invalid local URL @@ -17,12 +19,12 @@ class GetHttpUrlTest extends PHPUnit_Framework_TestCase { // Local list($headers, $content) = get_http_response('/non/existent', 1); - $this->assertEquals('Invalid HTTP Url', $headers[0]); + $this->assertEquals('Invalid HTTP UrlUtils', $headers[0]); $this->assertFalse($content); // Non HTTP list($headers, $content) = get_http_response('ftp://save.tld/mysave', 1); - $this->assertEquals('Invalid HTTP Url', $headers[0]); + $this->assertEquals('Invalid HTTP UrlUtils', $headers[0]); $this->assertFalse($content); }