title: Cannot get PHPUnit working on Symfony 2
body: <p>I am working with Symfony 2 and trying to get PHPunit to work with it so I've added this to my composer.json under required-dev:</p>
  
  <pre><code>"phpunit/phpunit": "4.6.*"
  </code></pre>
  
  <p>runned this command in my terminal: </p>
  
  <pre><code>composer update --dev
  </code></pre>
  
  <p>after doing the above PHPUnit appears under the <code>vendor</code> directory.</p>
  
  <p>According to the <a href="http://symfony.com/doc/current/book/testing.html" rel="nofollow">docs</a> Symfony 2 has PHPUnit pre configured and can be executed by: <code>phpunit -c app/</code></p>
  
  <p>But it never works and my terminal message is: </p>
  
  <pre><code> Unknown command “phpunit”
  The program 'phpunit' is currently not installed. You can install it by typing:
  sudo apt-get install phpunit
  </code></pre>
  
  <p>Even through this <code>./bin/phpunit -c app</code> seems to trigger phpunit no matter what test I write I always get this:</p>
  
  <pre><code>Configuration read from /home/tomazi/Dev/api.test/app/phpunit.xml.dist
  
  
  
  Time: 66 ms, Memory: 4.25Mb
  
  No tests executed!
  </code></pre>
  
  <p>My Test:</p>
  
  <pre><code>&lt;?php
  
  namespace BoltMail\User\InteractionBundle\Tests\Dto\Template;
  
  class TestTemplateTest extends \PHPUnit_Framework_TestCase
  {
      public function testIndex()
      {
          $this-&gt;assertTrue(true);
      }
  }
  </code></pre>