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

Problem with Symfony 3.0 directory structure #70

Open
marmotz opened this issue Jul 17, 2014 · 4 comments
Open

Problem with Symfony 3.0 directory structure #70

marmotz opened this issue Jul 17, 2014 · 4 comments

Comments

@marmotz
Copy link
Contributor

marmotz commented Jul 17, 2014

For my new project, I use Symfony 2.5 and I choose the new directory structure (http://stackoverflow.com/questions/23993295/what-is-the-new-symfony-3-directory-structure#23994473)

Unfortunatly, when I launch AtoumBundle tests, app/cache and app/config was created.

@geraldcroes
Copy link
Member

Thx for this issue.

Can you be more specific on the expected behaviour with Symfony 3 and its new directory structure ?

Looking through it, I guess files currently in app/cache should now be located in var/cache. But I didn't find anything related to app/config.

I could obviously look into it, but any help would be greatly appreciated.

@marmotz
Copy link
Contributor Author

marmotz commented Jul 17, 2014

Sorry, app/config is always in app :)

It's just app/cache -> var/cache (and maybe app/log -> var/log but I can't test for now, maybe tonight)

@Tom32i
Copy link

Tom32i commented Aug 5, 2015

Same problem here, I use Symfony 3.0 directory structure, so the Cache directory (%kernel.cache_dir%) is var/cache by default.

When Atoum runs, it build the cache in app/cache instead.
I don't know from where it gets this wrong path, it should use the same Kernel the Symfony app use.

Is there any way to override this path in Atoum?
Does someone knows where this path is calculated?

@Tom32i
Copy link

Tom32i commented Aug 5, 2015

All right, I found a solution: you have to tell Atoum to work with var/bootstrap.php.cache instead of app/autoload.php. Fortunately there is an option doing just that in the Atoum command line:

bin/console atoum --bootstrap-file=var/bootstrap.php.cache --env=test

Then the Kernel instance in Atoum will behave exactly as the ones in your app_test.php.

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

3 participants