Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
First time with symfony2 and phpunit and problems
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dorian Sarnowski  
View profile  
 More options Oct 9 2012, 11:35 am
From: Dorian Sarnowski <dorian.sarnow...@gmail.com>
Date: Tue, 9 Oct 2012 08:35:34 -0700 (PDT)
Local: Tues, Oct 9 2012 11:35 am
Subject: First time with symfony2 and phpunit and problems

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

What am I doing wrong?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oscar Balladares  
View profile  
 More options Oct 10 2012, 3:52 pm
From: Oscar Balladares <liebegr...@gmail.com>
Date: Wed, 10 Oct 2012 13:51:44 -0600
Local: Wed, Oct 10 2012 3:51 pm
Subject: Re: [Symfony2] First time with symfony2 and phpunit and problems

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.

Regards.

2012/10/9 Dorian Sarnowski <dorian.sarnow...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dorian Sarnowski  
View profile  
 More options Oct 12 2012, 11:29 am
From: Dorian Sarnowski <dorian.sarnow...@gmail.com>
Date: Fri, 12 Oct 2012 08:29:43 -0700 (PDT)
Local: Fri, Oct 12 2012 11:29 am
Subject: Re: [Symfony2] First time with symfony2 and phpunit and problems

I can run my app's tests, that's not the point. What i'm going to do is to
run the framework's test.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adrian Schneider  
View profile  
 More options Oct 12 2012, 1:09 pm
From: Adrian Schneider <siradr...@gmail.com>
Date: Fri, 12 Oct 2012 10:09:31 -0700 (PDT)
Local: Fri, Oct 12 2012 1:09 pm
Subject: Re: First time with symfony2 and phpunit and problems

Each vendor has their own dependencies and environment you need to create.  
For symfony, do this

cd vendor/symfony/symfony
curl -s https://getcomposer.org/installer | php
php composer.phar install --dev
phpunit


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »