Passage en Namespace et tous les tests fonctionnels OK
This commit is contained in:
@@ -7,14 +7,16 @@
|
||||
|
||||
namespace Domframework\Tests;
|
||||
|
||||
/** Test the http.php file */
|
||||
class httpTest extends \PHPUnit_Framework_TestCase
|
||||
use Domframework\Http;
|
||||
|
||||
/** Test the Http.php file */
|
||||
class HttpTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/** bestChoice : exact existing entry
|
||||
*/
|
||||
public function testBestChoice1 ()
|
||||
{
|
||||
$http = new http ();
|
||||
$http = new Http ();
|
||||
$res = $http->bestChoice (
|
||||
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
|
||||
array ("application/xml"), "text/html");
|
||||
@@ -26,7 +28,7 @@ class httpTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testBestChoice2 ()
|
||||
{
|
||||
$http = new http ();
|
||||
$http = new Http ();
|
||||
$res = $http->bestChoice (
|
||||
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
|
||||
array ("text/plain"), "text/html");
|
||||
@@ -37,7 +39,7 @@ class httpTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testBestChoice3 ()
|
||||
{
|
||||
$http = new http ();
|
||||
$http = new Http ();
|
||||
$res = $http->bestChoice (
|
||||
"text/html,application/xhtml+xml,application/xml;q=0.9",
|
||||
array ("text/plain"), "text/html");
|
||||
@@ -49,7 +51,7 @@ class httpTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testBestChoice4 ()
|
||||
{
|
||||
$http = new http ();
|
||||
$http = new Http ();
|
||||
$res = $http->bestChoice (
|
||||
"text/html,application/xhtml+xml,application/xml;q=0.9,",
|
||||
array ("text/plain"), "text/html");
|
||||
|
||||
Reference in New Issue
Block a user