13 lines
No EOL
739 B
Text
13 lines
No EOL
739 B
Text
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 |