GearmanBundle icon indicating copy to clipboard operation
GearmanBundle copied to clipboard

unexpected pseudo "dependency" PHPUnit (low prio)

Open luebbert42 opened this issue 12 years ago • 4 comments

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']);

luebbert42 avatar Feb 17 '13 12:02 luebbert42

MyCustomBundle: namespace: My\CustomBundle active: true ignore: Tests

klmatom avatar Mar 08 '13 23:03 klmatom

@klmatom's solution fixes this, so closing.

bmeynell avatar May 08 '13 02:05 bmeynell

This also happened to me. I think you should add this as the default.

codecowboy avatar Mar 07 '14 14:03 codecowboy

@codecowboy Agree... Maybe default values should be...

  • Tests
  • DependencyInjection
  • Resources
  • DataFixtures

Could you please submit a PR with this changes?

mmoreram avatar Mar 07 '14 15:03 mmoreram