belsym / test-bundle
A collection of Unit Testing classes
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
Requires (Dev)
- mockery/mockery: dev-master
- phpunit/phpunit: 3.7.19
- symfony/config: 2.2.*
- symfony/dependency-injection: 2.2.*
- symfony/http-kernel: 2.2.*
This package is not auto-updated.
Last update: 2024-12-02 15:55:45 UTC
README
A collection of classes that can be used within any project to provide a solid base for your unit tests.
There are currently 3 classes available:
MockedUpTestCase
This testcase enables Mockery and provides a configurable factory method for building Mock Objects.
TODO: Add documentation for MockedUpTestCase
MockContainerAwareTestCase
This test extends MockedUpTestCase to provide a mock Container for your unit tests. Also includes a method to generate a mock Doctrine EntityManager class
TODO: Add documentation for MockContainerAwareTestCase
ContainerAwareTestCase
The ContainerAwareTestCase creates a bootable kernel and uses a genuine ContainerInterface instance to access services configured through the application configuration files as normal. Can only be utilised in Symfony projects as it requires the AppKernel class to be included.