Test unitaire avec PHPUNIT
This commit is contained in:
parent
31b7a58526
commit
f6a3b1e5e3
4 changed files with 610 additions and 0 deletions
13
unit-test/README
Normal file
13
unit-test/README
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Ce répertoire sert aux tests unitaires avec PHPUNIT, il faut d'abord changer dans le bootstrap.php pour que le path soit correct.
|
||||
Il faut configurer Netbeans pour pouvoir l'utiliser :
|
||||
1 . Activer PHPUNIT,
|
||||
2 . dans GLOBAL PATH (propriété du projet) ajouter le fichier phpunit.phar
|
||||
3. Donner unit-test comme répertoire de test
|
||||
|
||||
Ensuite copier bootstrap.php.example vers bootstrap.php et modifier les variables (le dossier à utiliser, include_path ...)
|
||||
|
||||
Testing commande en ligne
|
||||
=========================
|
||||
Génération
|
||||
php <chemin>/phpunit-skelgen.phar --bootstrap bootstrap.php --test -- Intervat ../include/class_transform_intervat.php
|
||||
php <chemin>/phpunit.phar --tap --colors --bootstrap ../bootstrap.php class_acc_accountTest.php
|
||||
Loading…
Add table
Add a link
Reference in a new issue