Project which experiment "Learning By Automatic Testing" concept.
Tell composer to add RouffjHowToBundle in your composer.json and download it by running the command:
$ composer.phar require "rouffj/howto-bundle dev-master"
Composer will install the bundle to your project's vendor/rouffj directory.
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Rouffj\Bundle\HowToBundle\RouffjHowToBundle(), ); }
Add to your app/config/config.yml
in imports
directive:
- { resource: @RouffjHowToBundle/Resources/config/config.yml }
Add to your app/config/routing.yml
:
_howto_bundle: resource: "@RouffjHowToBundle/Resources/config/routing.yml"
$ cd vendor/rouffj/howto-bundle $ phpunit --testdox Rouffj\Bundle\HowToBundle\Tests\PhpParser\PhpParser [x] How to retrieve statement name [x] How to retrieve statement name supporting many declarations [x] How to retrieve expression name ... Rouffj\Bundle\HowToBundle\Tests\Symfony\Security\Voter [x] How to use voter for request based authorization ... Rouffj\Bundle\HowToBundle\Tests\Symfony\...