Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected pseudo "dependency" PHPUnit (low prio) #32

Open
luebbert42 opened this issue Feb 17, 2013 · 4 comments
Open

unexpected pseudo "dependency" PHPUnit (low prio) #32

luebbert42 opened this issue Feb 17, 2013 · 4 comments

Comments

@luebbert42
Copy link

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

@klmatom
Copy link

klmatom commented Mar 8, 2013

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

@bmeynell
Copy link
Contributor

bmeynell commented May 8, 2013

@klmatom's solution fixes this, so closing.

@codecowboy
Copy link
Contributor

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

@mmoreram
Copy link
Owner

mmoreram commented Mar 7, 2014

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

  • Tests
  • DependencyInjection
  • Resources
  • DataFixtures

Could you please submit a PR with this changes?

@mmoreram mmoreram reopened this Mar 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants