Tests are now compliant with php-cs-fixer (CamelCase for method, phpdoc valid)
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
<?php
|
||||
|
||||
/** DomFramework - Tests
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
/**
|
||||
* DomFramework - Tests
|
||||
* @package domframework
|
||||
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||
* @license BSD
|
||||
*/
|
||||
|
||||
namespace Domframework\Tests;
|
||||
|
||||
use Domframework\Tcpclient;
|
||||
|
||||
/** Test the TCP client */
|
||||
/**
|
||||
* Test the TCP client
|
||||
*/
|
||||
class TcpclientTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function test_GoogleIPv4()
|
||||
public function testGoogleIPv4()
|
||||
{
|
||||
$tcpclient = new Tcpclient("www.google.fr", 80);
|
||||
$tcpclient->preferIPv4(true);
|
||||
@@ -31,7 +34,7 @@ class TcpclientTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertSame(substr($res, 0, 15), "HTTP/1.1 200 OK");
|
||||
}
|
||||
|
||||
public function test_GoogleIPv4orIpv6()
|
||||
public function testGoogleIPv4orIpv6()
|
||||
{
|
||||
$tcpclient = new Tcpclient("www.google.fr", 80);
|
||||
$tcpclient->connect();
|
||||
@@ -48,7 +51,7 @@ class TcpclientTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertSame(substr($res, 0, 15), "HTTP/1.1 200 OK");
|
||||
}
|
||||
|
||||
public function test_GoogleSSL()
|
||||
public function testGoogleSSL()
|
||||
{
|
||||
$tcpclient = new Tcpclient("www.google.fr", 443);
|
||||
$tcpclient->connect();
|
||||
@@ -66,7 +69,7 @@ class TcpclientTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertSame(substr($res, 0, 15), "HTTP/1.1 200 OK");
|
||||
}
|
||||
|
||||
public function test_GoogleSSLIPv6()
|
||||
public function testGoogleSSLIPv6()
|
||||
{
|
||||
$tcpclient = new Tcpclient("ipv6.google.com", 443);
|
||||
$tcpclient->connect();
|
||||
|
||||
Reference in New Issue
Block a user