I have installed phpunit 3.6.12 as well as Silex. In the root directory of my application, I have a test directory containing the trivial test file BlogFunctionTest.php
<? use Silex\WebTestCase;
when I run phpunit from the command line, I get an error
PHP Fatal error: Class 'Silex\WebTestCase' not found in {path}/BlogFunctionTest.php line 7
which refers to the line where I am trying to extend WebTestCase. The same thing happens if I replace
use Silex\WebTestCase;
with
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
Silex installs compared to my test file in
../vendor/silex/
Any advice is greatly appreciated, thanks!
source share