belsym / test-bundle
A collection of Unit Testing classes
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: 2026-03-09 22:52:36 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.