Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8770133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:30:09+00:00 2026-06-13T17:30:09+00:00

I just installed PHPUnit on OS X + MAMP. (My phpunit was installed in

  • 0

I just installed PHPUnit on OS X + MAMP. (My phpunit was installed in my MAMP folder, so I copied it to /usr/bin because I couldn’t use the “phpunit” command in terminal without the path)

New Symfony folder

When I go to a new Symfony2 folder and I try phpunit -c App/the tests start and I get a green confirmation that all tests passed.

PHPUnit 3.7.8 by Sebastian Bergmann.

Configuration read from     
/Users/username/Dropbox/www/symfonydev/Symfony/App/phpunit.xml.dist
.
Time: 0 seconds, Memory: 15.50Mb
OK (1 test, 1 assertion)

Own symfony website

But when I go to my own little Symfony2 project and execute the same command, nothing happens! He doesn’t even load the phpunit.xml.dist. I get no output at all on my terminal window.

The test file, however, does exist and is readable, I can start it by explicitly specifying it on the command line of phpunit:

phpunit -c app/ src/MatchTracker/Bundle/Tests/Controller/AuthenticationControllerTest.phpand this works.

It seems that something is wrong with the phpunit.xml.dist. It’s the default phpunit.xml.dist and I tried renaming it to phpunit.xml. But nothing happens. What could be the problem? I think he can’t find my xml or use it, or maybe he can read the phpunit.xml but doesn’t find my tests.

Here’s an example from my terminal: You see that the phpunit command doesn’t do anything, except when I specify the test file…

MacBook-Pro:www username$ ls
LICENSE     app     composer.json   composer.lock   composer.phar   src     vendor      web
MacBook-Pro:www username$ ls app/
AppCache.php        SymfonyRequirements.php cache           console         phpunit.xml.dist
AppKernel.php       autoload.php        check.php       logs
Resources       bootstrap.php.cache config          phpunit.xml
MacBook-Pro:www username$ phpunit -c app/
MacBook-Pro:www username$ phpunit -c app/ src/MatchTracker/Bundle/Tests/Controller/AuthenticationControllerTest.php
PHPUnit 3.7.8 by Sebastian Bergmann.

Configuration read from /Users/username/Dropbox/www/matchtracker.be/www/app/phpunit.xml

F

Time: 1 second, Memory: 21.75Mb

There was 1 failure:

1) MatchTracker\Bundle\Tests\Controller\DefaultControllerTest::testIndex
Failed asserting that 404 matches expected 200.

/Users/username/Dropbox/www/matchtracker.be/www/src/MatchTracker/Bundle/Tests/Controller/AuthenticationControllerTest.php:28

FAILURES!
Tests: 1, Assertions: 1, Failures: 1.
MacBook-Pro:www username$
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:30:11+00:00Added an answer on June 13, 2026 at 5:30 pm

    What’s in your phpunit.xml? <testsuites> section of this file tells phpunit which directories scan for tests.

    Remember that phpunit.xml overwrites phpunit.xml.dist.

    Look at the original phpunit.xml.dist file and either remove the phpunit.xml or start by copying phpunit.xml.dist into phpunit.xml.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just installed python2.6 parallel to my python2.4. I ran this command ln -s
I installed PHPunit via the commandline and added it to my path variables. I
I've just installed PHPUnit and wrote a quick class which I saved to C:\PHP
i have just installed phpunit on my ubuntu. now i wan't to implement some
I just installed the PHPUnit Selenium extensions through pear install phpunit/PHPUnit_Selenium. The system is
Just installed nodeJS and NPM and nodesupervisor via Terminal in OS 10.5.8. I have
Just installed a clean version of mongodb on Fedora 17 64-bit, but the Mongo
Just installed Python 2.7.3 on a Windows7 machine. How do I get .py files
Just installed Jenkins in Ubuntu 12.04 and I wanted to create a simple build
Just installed the SDK and ADK. while updating, it gives the following error: unexpected

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.