Bonjour

c'est très loin d'être acquis

téléchargement de la dernière version de symfony

> symfony new developpement

téléchargement de phpunit.phar

> php phpunit.phar .\developpement

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
PHP Fatal error:  Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found in D:\Travail\EFS\efs\developpement\tests\AppBundle\Controller\DefaultControllerTest.php on line 7
 
Fatal error: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found in D:\Travail\EFS\efs\developpement\tests\AppBundle\Controller\DefaultControllerTest.php on line 7
PS D:\Travail\EFS\efs> C:\xampp\php\php.exe .\tools\phpunit.phar .\developpement
PHP Fatal error:  Class 'Doctrine\Tests\Common\Cache\CacheTest' not found in D:\Travail\EFS\efs\developpement\vendor\doctrine\cache\tests\Doctrine\Tests\Common\Cache\ApcCacheTest.php on line 10
 
Fatal error: Class 'Doctrine\Tests\Common\Cache\CacheTest' not found in D:\Travail\EFS\efs\developpement\vendor\doctrine\cache\tests\Doctrine\Tests\Common\Cache\ApcCacheTest.php on line 10
PS D:\Travail\EFS\efs> C:\xampp\php\php.exe .\tools\phpunit.phar .\developpement
PHP Fatal error:  Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found in D:\Travail\EFS\efs\developpement\tests\AppBundle\Controller\DefaultControllerTest.php on line 7
 
Fatal error: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found in D:\Travail\EFS\efs\developpement\tests\AppBundle\Controller\DefaultControllerTest.php on line 7
visiblement le code fourni est buggué

la doc
Chapter 1. Setup
Chapter 2. Creating Pages
Chapter 3. Routing
Chapter 4. Controllers
Chapter 5. Templates
Chapter 6. Configuration

oops les tests sont oubliés ?

recherche de test dans la doc
les bonnes pratiques : faire des tests mais pas comment les exécuter https://symfony.com/doc/current/best...ontent_wrapper
comment exécuter les tests pour contribuer au projet symfony https://symfony.com/doc/current/cont...ode/tests.html

3 jours pour juste exécuter des tests ....

s'il vous plait y a-t-il quelqu'un qui sait comment on exécute les tests ?

A+JYT