GearmanBundle
GearmanBundle copied to clipboard
unexpected pseudo "dependency" PHPUnit (low prio)
I am using Symfony 2.1 and mmoreramerino/gearmanbundle (dev-development). I run into troubles when setting up my own workers in my own bundle:
I added my ExampleBundle to dev.yml and also the namespace \Acme\ExampleBundle
This bundle was generated using Symfony's console app, so a PHP unit test for the default controller was also generated. This lead to a fatal error when warming up Gearman's cache as PHPUnit was not available at this point of time :
php app/console gearman:cache:warmup Class 'PHPUnit_Framework_TestCase' not found
class: GearmanCacheLoader: load method Line: $reflClass = new \ReflectionClass($file['class']);
MyCustomBundle: namespace: My\CustomBundle active: true ignore: Tests
@klmatom's solution fixes this, so closing.
This also happened to me. I think you should add this as the default.
@codecowboy Agree... Maybe default values should be...
- Tests
- DependencyInjection
- Resources
- DataFixtures
Could you please submit a PR with this changes?