The ACL bundle makes it possible to grant authorization based on resources.
Read the bundle documentation.
You can run the unit tests with the following command:
$ cd path/to/acl-bundle/ $ composer.phar install --dev $ ./vendor/bin/simple-phpunit