diff --git a/Tests/TcpclientTest.php b/Tests/TcpclientTest.php index a62a441..1cdd9ad 100644 --- a/Tests/TcpclientTest.php +++ b/Tests/TcpclientTest.php @@ -16,13 +16,13 @@ use Domframework\Tcpclient; */ class TcpclientTest extends \PHPUnit_Framework_TestCase { - public function testGoogleIPv4() + public function testFournier38IPv4() { - $tcpclient = new Tcpclient("www.google.fr", 80); + $tcpclient = new Tcpclient("ipv4.fournier38.fr", 80); $tcpclient->preferIPv4(true); $tcpclient->connect(); $tcpclient->send("GET / HTTP/1.1\r\n" . - "Host: www.google.fr\r\n" . + "Host: ip.fournier38.fr\r\n" . "User-Agent: DomFramework\r\n" . "Accept: *" . "/*\r\n" . "\r\n"); @@ -34,12 +34,12 @@ class TcpclientTest extends \PHPUnit_Framework_TestCase $this->assertSame(substr($res, 0, 15), "HTTP/1.1 200 OK"); } - public function testGoogleIPv4orIpv6() + public function testFournier38IPv4orIpv6() { - $tcpclient = new Tcpclient("www.google.fr", 80); + $tcpclient = new Tcpclient("ip.fournier38.fr", 80); $tcpclient->connect(); $tcpclient->send("GET / HTTP/1.1\r\n" . - "Host: www.google.fr\r\n" . + "Host: ip.fournier38.fr\r\n" . "User-Agent: DomFramework\r\n" . "Accept: *" . "/*\r\n" . "\r\n"); @@ -51,13 +51,13 @@ class TcpclientTest extends \PHPUnit_Framework_TestCase $this->assertSame(substr($res, 0, 15), "HTTP/1.1 200 OK"); } - public function testGoogleSSL() + public function testFournier38SSL() { - $tcpclient = new Tcpclient("www.google.fr", 443); + $tcpclient = new Tcpclient("ip.fournier38.fr", 443); $tcpclient->connect(); $tcpclient->cryptoEnable(true); $tcpclient->send("GET / HTTP/1.1\r\n" . - "Host: www.google.fr\r\n" . + "Host: ip.fournier38.fr\r\n" . "User-Agent: DomFramework\r\n" . "Accept: *" . "/*\r\n" . "\r\n"); @@ -69,13 +69,13 @@ class TcpclientTest extends \PHPUnit_Framework_TestCase $this->assertSame(substr($res, 0, 15), "HTTP/1.1 200 OK"); } - public function testGoogleSSLIPv6() + public function testFournier38SSLIPv6() { - $tcpclient = new Tcpclient("ipv6.google.com", 443); + $tcpclient = new Tcpclient("ipv6.fournier38.fr", 443); $tcpclient->connect(); $tcpclient->cryptoEnable(true); $tcpclient->send("GET / HTTP/1.1\r\n" . - "Host: www.google.fr\r\n" . + "Host: ipv6.fournier38.f\r\n" . "User-Agent: DomFramework\r\n" . "Accept: *" . "/*\r\n" . "\r\n");