To install the plugin into a Symfony project:
- Install the plugin files into
plugins/
. - Install PHPUnit 3.5 if necessary. Make sure it is accessible from PHP's include_path.
- Add a
test
entry toconfig/databases.yml
or disableuse_database
inapps/*/config/settings.yml
. - Add an
upload_dir
entry for thetest
environment insettings.yml
for each application in your project. - Change
error_reporting
for thetest
environment to(E_ALL | E_STRICT)
insettings.yml
for each application in your project. - Add the following code to
ProjectConfiguration::setup()
inconfig/ProjectConfiguration.class.php
:
if( PHP_SAPI == 'cli' ) { $this->enablePlugins('sfJwtPhpUnitPlugin'); }
Note: Because this plugin only implements Symfony tasks and should have no effect upon the normal operation of your project, it only needs to be loaded when in CLI mode.
Now you're ready to start writing tests!