Download the PHP package atoum/atoum-bundle without Composer
On this page you can find all versions of the php package atoum/atoum-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atoum/atoum-bundle
More information about atoum/atoum-bundle
Files in atoum/atoum-bundle
Package atoum-bundle
Short Description Bundle around atoum unit testing framework
License MIT
Homepage https://github.com/atoum/AtoumBundle
Informations about the package atoum-bundle
AtoumBundle
This bundle provides a (very) simple integration of atoum, the simple, modern and intuitive unit testing framework for PHP, from mageekguy into Symfony2.
Installation
1 - With composer
In most of the cases you don't need AtoumBundle in your production environment.
2 - Command
AtoumBundle is provided with a Symfony command. You can launch atoum tests on specific bundles.
2-a Registering in the kernel
You have to define AtoumBundle on AppKernel
2-b Configuration
Define your bundles on configuration (if you want to use it only in test environment, in config_test.yml
only):
2-c Command-line usage
Then you can use:
Simple Usage
Make your test class extend the class of the bundle.
Don't forget to load this class with your favorite method (require, autoload, ...) if you don't use composer.
Web test case
You can easily create a kernel environment:
Command test case
You can also easily test a command:
Known issues
- The path of the AppKernel cannot be found, override the method and add the path to your directory.
Test a controller
You can test your controller with the class (it extends WebTestCase
- each file must correspond to a Symfony2 controller):
Test a form type
You can test your form types with the class as the official symfony 2 documentation shows it. But as the official documentation fits the PHPUnit testing framework, here comes this documentation first example atoum-translated :
Faker data
AtoumBundle integrates with Faker library.
In your tests classes, you have access to a instance with the asserter.
See Faker's documentation about its usage.
All versions of atoum-bundle with dependencies
symfony/framework-bundle Version >=2.3.0|^3.0
symfony/console Version >=2.3.0|^3.0
symfony/finder Version >=2.3.0|^3.0
symfony/dom-crawler Version >=2.3.0|^3.0
symfony/css-selector Version >=2.3.0|^3.0
atoum/atoum Version ^3.1.1
fzaninotto/faker Version 1.*