Symfony 2.0を使用すると、システム全体がローカルホストで正しく動作します。
今、私はそれをインターネットホスティングにアップロードしようとしました。いくつかのエラーで作業した後、私はここで立ち往生しています:
Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /home/preparatest/www/Symfony/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php
(ちなみに、クラスは確かにそのディレクトリに存在します)。
誰かがこれを通過しましたか?
注:私は特にPHPUnitを構成していません。いくつかのSymfonyバンドルに含まれているだけだと思います。私はそれが何のためにあるのか本当にわかりません、そして、可能であれば、それを完全に取り除くだけでもかまいません。
更新:これは機能していない正確なクラスです。どうやらそれは親クラスを見つけられません\PHPUnit_Framework_TestCase。しかし、これはSymfonyにバンドルされているパッケージであり、ローカルでうまく機能すると私は主張します。リモートにない理由がわかりません:(
<?php
/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * 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 <fabien@symfony.com>
 */
abstract class WebTestCase extends \PHPUnit_Framework_TestCase
{
    static protected $class;
    static protected $kernel;