I've downloaded a fresh version of Symfony via composer and started playing with phpunit. I can run apllication's tests by going to app directory and run "phpunit", but some strange things happend when I try to run framework's tests. I have followed the documentation ( http://symfony.com/doc/master/contributing/code/tests.html) and I've halted on "running".
When I'm in main directory (in wich I have "app", "src", "vendor", "web" directories) and run phpunit, I get phpunit help. I think the cleaver idea would be go to "/vendor/symfony/symfony" directory and run phpunit inside it, but then I get PHP Warning and Fatal error
PHP Warning: require_once(/home/dorian/Works/symfony/vendor/symfony/symfony/vendor/autol oad.php): failed to open stream: No such file or directory in /home/dorian/Works/symfony/vendor/symfony/symfony/autoload.php.dist on line 3 PHP Warning: require_once(/home/dorian/Works/symfony/vendor/symfony/symfony/vendor/autol oad.php): failed to open stream: No such file or directory in /home/dorian/Works/symfony/vendor/symfony/symfony/autoload.php.dist on line 3
The configuration file for phpunit and the project is under
app/phpunit.xml, so in the terminal you should execute:
phpunit -c app/
This indicates to phpunit to look for a configuration file inside app/.
That configuration in return tells phpunit that test files are under
src/yourVendorName/YourBundles/Tests/*
Take a look to the phpunit.xml file.
> I've downloaded a fresh version of Symfony via composer and started
> playing with phpunit. I can run apllication's tests by going to app
> directory and run "phpunit", but some strange things happend when I try to
> run framework's tests. I have followed the documentation (
> http://symfony.com/doc/master/contributing/code/tests.html) and I've
> halted on "running".
> When I'm in main directory (in wich I have "app", "src", "vendor", "web"
> directories) and run phpunit, I get phpunit help. I think the cleaver idea
> would be go to "/vendor/symfony/symfony" directory and run phpunit inside
> it, but then I get PHP Warning and Fatal error
> PHP Warning:
> require_once(/home/dorian/Works/symfony/vendor/symfony/symfony/vendor/autol oad.php):
> failed to open stream: No such file or directory in
> /home/dorian/Works/symfony/vendor/symfony/symfony/autoload.php.dist on line
> 3
> PHP Warning:
> require_once(/home/dorian/Works/symfony/vendor/symfony/symfony/vendor/autol oad.php):
> failed to open stream: No such file or directory in
> /home/dorian/Works/symfony/vendor/symfony/symfony/autoload.php.dist on line
> 3
> What am I doing wrong?
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
> You received this message because you are subscribed to the Google
> Groups "Symfony2" group.
> To post to this group, send email to symfony2@googlegroups.com
> To unsubscribe from this group, send email to
> symfony2+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony2?hl=en
On Wednesday, October 10, 2012 9:52:08 PM UTC+2, Oscar B. wrote:
> The configuration file for phpunit and the project is under > app/phpunit.xml, so in the terminal you should execute: > phpunit -c app/ > This indicates to phpunit to look for a configuration file inside app/. > That configuration in return tells phpunit that test files are under > src/yourVendorName/YourBundles/Tests/* > Take a look to the phpunit.xml file.
>> I've downloaded a fresh version of Symfony via composer and started >> playing with phpunit. I can run apllication's tests by going to app >> directory and run "phpunit", but some strange things happend when I try to >> run framework's tests. I have followed the documentation ( >> http://symfony.com/doc/master/contributing/code/tests.html) and I've >> halted on "running".
>> When I'm in main directory (in wich I have "app", "src", "vendor", "web" >> directories) and run phpunit, I get phpunit help. I think the cleaver idea >> would be go to "/vendor/symfony/symfony" directory and run phpunit inside >> it, but then I get PHP Warning and Fatal error
>> PHP Warning: >> require_once(/home/dorian/Works/symfony/vendor/symfony/symfony/vendor/autol oad.php): >> failed to open stream: No such file or directory in >> /home/dorian/Works/symfony/vendor/symfony/symfony/autoload.php.dist on line >> 3 >> PHP Warning: >> require_once(/home/dorian/Works/symfony/vendor/symfony/symfony/vendor/autol oad.php): >> failed to open stream: No such file or directory in >> /home/dorian/Works/symfony/vendor/symfony/symfony/autoload.php.dist on line >> 3
>> What am I doing wrong?
>> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com
>> You received this message because you are subscribed to the Google >> Groups "Symfony2" group. >> To post to this group, send email to symf...@googlegroups.com<javascript:> >> To unsubscribe from this group, send email to >> symfony2+u...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/symfony2?hl=en
On Tuesday, October 9, 2012 8:35:34 AM UTC-7, Dorian Sarnowski wrote:
> Hi!
> I've downloaded a fresh version of Symfony via composer and started > playing with phpunit. I can run apllication's tests by going to app > directory and run "phpunit", but some strange things happend when I try to > run framework's tests. I have followed the documentation ( > http://symfony.com/doc/master/contributing/code/tests.html) and I've > halted on "running".
> When I'm in main directory (in wich I have "app", "src", "vendor", "web" > directories) and run phpunit, I get phpunit help. I think the cleaver idea > would be go to "/vendor/symfony/symfony" directory and run phpunit inside > it, but then I get PHP Warning and Fatal error
> PHP Warning: > require_once(/home/dorian/Works/symfony/vendor/symfony/symfony/vendor/autol oad.php): > failed to open stream: No such file or directory in > /home/dorian/Works/symfony/vendor/symfony/symfony/autoload.php.dist on line > 3 > PHP Warning: > require_once(/home/dorian/Works/symfony/vendor/symfony/symfony/vendor/autol oad.php): > failed to open stream: No such file or directory in > /home/dorian/Works/symfony/vendor/symfony/symfony/autoload.php.dist on line > 3