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
testentry toconfig/databases.ymlor disableuse_databaseinapps/*/config/settings.yml. - Add an
upload_direntry for thetestenvironment insettings.ymlfor each application in your project. - Change
error_reportingfor thetestenvironment to(E_ALL | E_STRICT)insettings.ymlfor 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!