Download the PHP package seegno/test-bundle without Composer
On this page you can find all versions of the php package seegno/test-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download seegno/test-bundle
More information about seegno/test-bundle
Files in seegno/test-bundle
Package test-bundle
Short Description SeegnoTestBundle
License MIT
Homepage https://github.com/seegno/test-bundle
Informations about the package test-bundle
SeegnoTestBundle
Introduction
This Bundle provides base classes for unit and integration tests in order to assist in setting test databases and data fixtures.
Installation
1. Download SeegnoTestBundle using composer
Install SeegnoTestBundle by running the command:
2. Enable the bundle
Enable the bundle in the kernel:
3. Prepare your Application for tests
Integration (functional)
Please add the following configuration in config_test.yml
:
Warning!!
It's very important that you configure a different database for tests in your config_test.yml
file since all data is purged from the database in integration tests.
Usage
Unit tests
Available features:
Integration tests
Available features:
Web tests
Available features:
Run tests
Before running the tests, make sure you have the test database updated.
To run the tests on your local machine, just use the phpunit command:
All versions of test-bundle with dependencies
doctrine/doctrine-fixtures-bundle Version ~2.2
fzaninotto/faker Version >=1.5
phpunit/phpunit Version ~4.5
symfony/symfony Version >=2.7