Passage en Namespace et tous les tests fonctionnels OK

This commit is contained in:
2021-05-10 11:48:15 +02:00
parent 536dd0d56b
commit eb30d8ef97
56 changed files with 1091 additions and 964 deletions

View File

@@ -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");