PHP code example of bentools / pest-symfony-kernel
1. Go to this page and download the library: Download bentools/pest-symfony-kernel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bentools / pest-symfony-kernel example snippets
use Symfony\Component\Routing\RouterInterface;
use function BenTools\Pest\Symfony\inject;
it('injects my router! 🤯', function () {
$router = inject(RouterInterface::class); // Fetch router from the service container
expect($router)->toBeInstanceOf(RouterInterface::class); // ✨
});