title: Symfony3.4: PHPUnit and no code coverage driver available
body: <p>In my case:</p>
  
  <p>When I run </p>
  
  <blockquote>
    <p><code>vendor/bin/phpunit --coverage-html coverage</code></p>
  </blockquote>
  
  <p>Error Comes:</p>
  
  <blockquote>
  <pre><code> PHPUnit 6.5.8 by Sebastian Bergmann and contributors.
  
   Error:         No code coverage driver is available
  </code></pre>
  </blockquote>
  
  <p>Then I installed Xdebug</p>
  
  <blockquote>
    <p><code>sudo apt-get install php-xdebug</code></p>
  </blockquote>
  
  <p>But When I again run
  <code>vendor/bin/phpunit --coverage-html coverage</code></p>
  
  <p><strong>It gives the error:</strong></p>
  
  <blockquote>
  <pre><code>PHPUnit 6.5.8 by Sebastian Bergmann and contributors.
  
  Undefined variable: view
  </code></pre>
  </blockquote>