I have been trying to run FunctionalTest which extends the Symfony\Bundle\FrameworkBundle\Tests\Functional\WebTestCase with not so much success.
The issue is that:
the code in FrameworkBundle\Tests\Functional\app\AppKernel.php attempts to load autoload.php.dist in the framework bundle (not the one in the app/).
And autoload.php.dist then tries to load vendor\autoload.php which does not exist within this path.
If I remove the autoload.php.dist in the FrameworkBundle then everything is fine, but I want to avoid doing that because each time I do composer update I will then have to remove that specific fine.
I wonder what I'm doing wrong.
The exact error from the console is posted below for your information:
Configuration read from D:\xampp\htdocs\demo\app\phpunit.xml. dist
require_once() called at [D:\xampp\htdocs\demo\vendor\sym fony\symfony\src\Symfony\Bundle\FrameworkBundle\Tests\Functional\app\AppKernel.p hp:26]
require_once(D:\xampp\htdocs\demo\vendor\symfony\symfony\ src\Symfony\Bundle\FrameworkBundle\Tests\Functional\app\AppKernel.php) called at [D:\xampp\htdocs\demo\vendor\symfony\symfony\src\Symfony\Bun dle\FrameworkBundle\Tests\Functional\WebTestCase.php:47]
Fatal error: main(): Failed opening required 'D:\xampp\htdocs\demo\vendor\symfony\symfony/vendor/autoload.php' (include_path='.;D:\xampp\php\PEAR') in D:\xampp\htdocs\demo\vendor\symfony\sym fony\autoload.php.dist on line 9
The test class simply extends WebTestCase with the setUp looks like this:
static::$kernel = static::createKernel(array('test_case'));
static::$kernel->boot();
$this->containter = static::$kernel->getContainer();