Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8647333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:02:40+00:00 2026-06-12T13:02:40+00:00

Using Symfony 2.0, I have a whole system working properly in localhost. Now I’ve

  • 0

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 <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;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:02:41+00:00Added an answer on June 12, 2026 at 1:02 pm

    Ok, solved.

    I removed all Test and Tests folders from my Bundles. Those where just intended to perform unit tests with Symfony… but i productions apparently PHPUnit is not installed.

    Thanks a lot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using symfony for a few weeks now and I am using
i am using Symfony 1.4, to create my project. i have tried to deploy
we using symfony 1.0. We have an module work with Propel objects. The sql-querys
I am using symfony 1.0 and have set routing for few URLs as below.
I'm using Symfony 2 with Doctrine. I have 4 classes: Country, District, County and
I'm building a site using symfony php framework. I have a link in my
I have a Symfony 1.4 app using sfDoctrineGuardPlugin for users. I need to move
I am new to symfony. I have created a registration form using the code:
I'm using Symfony and Doctrine, and have several many-to-many relations that work fine. But
Using Symfony 1.4.5 with Doctrine I have a model which includes an uploaded image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.