Using Symfony 2.0, I have a whole system working properly in localhost.
Now I've tried to to upload it to an Internet hosting. After working in some errors, I am stuck here:
Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /home/preparatest/www/Symfony/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php
(By the way, the class exists in that directory indeed).
Anybody passed through this?
NOTE: I am not particularly configuring PHPUnit. I guess it is just included within some Symfony bundle. I don't really know what it is for and I wouldn't mind, if possilbe, just to remove it completely.
UPDATE: This is the exact class that isn't working. Apparently it doesn't find the parent class \PHPUnit_Framework_TestCase. But, I insist, this is a package bundled within Symfony and works well in local. I don't see why it doesn't in remote :(
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\FrameworkBundle\Test;
use Symfony\Bundle\FrameworkBundle\Client;
use Symfony\Component\Finder\Finder;
use Symfony\Component\HttpKernel\HttpKernelInterface;
/**
* WebTestCase is the base class for functional tests.
*
* @author Fabien Potencier <[email protected]>
*/
abstract class WebTestCase extends \PHPUnit_Framework_TestCase
{
static protected $class;
static protected $kernel;
PHPUnit_Framework_TestCaseis for, you are strongly encouraged to have a look at phpunit.de and learn about Unit Testing. It will greatly enhance your coding.