title: PHPUnit test...to run in verbose mode in Symfony
body: <p>I want to run the phpunit test for my bundle tests in Symfony, and I have tried in the below way:</p>
  
  <blockquote>
    <p>phpunit --verbose
    src\MyNameSpace\MyAppBundle\Tests\Controller\BadDataPostUnitTestControllerTest</p>
  </blockquote>
  
  <p>but the error I am seeing :
  <em>Fatal error: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found in...where I have used it in my test class</em></p>
  
  <p>I am running the command from windows command prompt and running the command from Symfony root directory </p>
  
  <p>I found the solution from <a href="https://stackoverflow.com/questions/3708539/phpunit-get-message-ok-but-incomplete-or-skipped-tests-without-any-informa">here</a> and also from <a href="https://stackoverflow.com/questions/30163282/how-to-find-the-reason-for-a-risky-test-in-phpunit">this</a>, but when I am trying getting the error.</p>
  
  <p>The composer dependency present, I have checked at composer.json file exists the below lines:</p>
  
  <pre><code>,
      "require-dev": {
          "sensio/generator-bundle": "~2.3",
          "phpunit/phpunit": "^4.8",
          "squizlabs/php_codesniffer": "^2.3",
          "phploc/phploc": "^2.1",
          "pdepend/pdepend": "^2.1",
          "phpmd/phpmd": "^2.2",
          "sebastian/phpcpd": "^2.0",
          "theseer/phpdox": "0.8.1.1",
          "symfony/browser-kit": "^2.7",
          "mayflower/php-codebrowser": "^1.1"     
      }
  </code></pre>
  
  <p>UPDATE:
  While the --verbose one showing error, the below command is running properly:
  <em>phpunit -c app /src/NameSpace/MyBundle/Tests/Controller/MyUnitTestControllerTest.php</em></p>
  
  <p>UPDATE:</p>
  
  <p>The /app/phpunit.xml file:</p>
  
  <pre><code>&lt;phpunit backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" syntaxCheck="false" bootstrap="bootstrap.php.cache" codecoverage="true"&gt;
  
      &lt;formatter type="clover" usefile="false"/&gt;
      &lt;testsuites&gt;
          &lt;testsuite name="EDS Console App Test Suite"&gt;
              &lt;directory&gt;../src/*/*Bundle/Tests&lt;/directory&gt;
              &lt;directory&gt;../src/*/Bundle/*Bundle/Tests&lt;/directory&gt;
          &lt;/testsuite&gt;
      &lt;/testsuites&gt;
  
      &lt;filter&gt;
          &lt;whitelist&gt;
              &lt;directory&gt;../src&lt;/directory&gt;
              &lt;exclude&gt;
                  &lt;directory&gt;../src/*/*Bundle/Resources&lt;/directory&gt;
                  &lt;directory&gt;../src/*/*Bundle/Tests&lt;/directory&gt;
                  &lt;directory&gt;../src/*/Bundle/*Bundle/Resources&lt;/directory&gt;
                  &lt;directory&gt;../src/*/Bundle/*Bundle/Tests&lt;/directory&gt;
              &lt;/exclude&gt;
          &lt;/whitelist&gt;
      &lt;/filter&gt;
  
      &lt;php&gt;
          &lt;server name='SERVER_PORT' value='8080' /&gt;
          &lt;server name='SERVER_NAME' value='http://myserver.com' /&gt;
      &lt;/php&gt;
  
      &lt;logging&gt;
          &lt;log type="coverage-html" target="${basedir}/build/coverage" title="EDL-Console Test  Coverage" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70"/&gt;
          &lt;log type="coverage-clover" target="${basedir}/build/logs/clover.xml"/&gt;
          &lt;log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/&gt;
      &lt;/logging&gt;
  &lt;/phpunit&gt;
  </code></pre>