phpspec / symfony2-extension
Symfony2 extension for phpspec
Installs: 5 763
Dependents: 0
Suggesters: 0
Security: 0
Stars: 28
Watchers: 14
Forks: 7
Open Issues: 4
Requires
- php: >=5.3.3
- phpspec/phpspec: dev-master
- symfony/framework-bundle: ~2.0
Requires (Dev)
- behat/behat: *
- bossa/phpspec2-expect: dev-master
This package is auto-updated.
Last update: 2022-02-01 12:26:55 UTC
README
Symfony2 extension for PhpSpec. The extension is pretty much dead. Since we aim on writing code decoupled from the framework, PhpSpec works very well without a special extension for Symfony.
There were only two features provided by this extension - stubbing the container and generating specs in a bundle.
Stubbing the container is a bad practice. The only place we might need to access the container is a controller. It's prefered to register the controller as a service, so stubbing it is not needed.
Placing specs in a bundle is not a recommended way either. It's cleaner to have all specs in a single folder.