diff --git a/manager/autoloader.php b/manager/autoloader.php index 7e8f94e..87a2451 100755 --- a/manager/autoloader.php +++ b/manager/autoloader.php @@ -1,4 +1,7 @@ - \ No newline at end of file diff --git a/phpunit/bootstrap.php b/phpunit/bootstrap.php new file mode 100644 index 0000000..e2d4567 --- /dev/null +++ b/phpunit/bootstrap.php @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/phpunit/phpunit.xml b/phpunit/phpunit.xml index 8a984d4..b316503 100755 --- a/phpunit/phpunit.xml +++ b/phpunit/phpunit.xml @@ -1,4 +1,4 @@ - + diff --git a/phpunit/tests/Database_construct.php b/phpunit/tests/Database_construct.php index 827a58f..10f0be6 100755 --- a/phpunit/tests/Database_construct.php +++ b/phpunit/tests/Database_construct.php @@ -15,7 +15,6 @@ \manager\Database::$error = \manager\ManagerError::PDOConnection; - $_SERVER['HTTP_HOST'] = 'stefproject'; $instance = \manager\Database::getInstance(); $this->assertEquals( 'localhost', $instance->getConfig()['host'] ); diff --git a/todo.md b/todo.md index 08cb501..9073064 100755 --- a/todo.md +++ b/todo.md @@ -39,6 +39,7 @@ ######## # FAIT # ######## +- [x] [autoloader][phpunit/bootstrap.php] Correction des bugs de $_SERVER avec PHPUnit -> autoloader + bootstrap personnalise - [x] [sessionManager] Import de sessionManager - [x] [phpunit/tests/Database_*] Tests unitaire de delNumeric() - [x] [Database] Mise a jour des methodes de Database