Skip to content

Instantly share code, notes, and snippets.

View Tiriel's full-sized avatar

Benjamin Zaslavsky Tiriel

View GitHub Profile
@Tiriel
Tiriel / DefaultControllerTest.php
Created October 19, 2022 14:43
Simple Smoke test for Symfony applications
<?php
/**
* Automatically smoke test all your static routes, and all dynamic routes with default values.
* Adapted and simplified from https://github.com/Pierstoval/SmokeTesting
* On an idea from Ismail1432 https://github.com/ismail1432 on Twitter:
* https://twitter.com/SmaineDev/status/1559542937696043008
*/
namespace App\Tests\Controller;