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

  • Home
  • SEARCH
  • 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 8144599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:25:55+00:00 2026-06-06T13:25:55+00:00

I am running PHP unit as follows: phpunit –debug –verbose –coverage-clover=/tmp/test.xml and get the

  • 0

I am running PHP unit as follows:

phpunit --debug --verbose --coverage-clover=/tmp/test.xml

and get the following error:

Fatal error: Class 'PHP_Token_OPEN_TAG' not found in /opt/pear/share/pear/PHP/Token/Stream.php on line 205

The stack trace leads down to

12. PHP_Token_Stream->scan($sourceCode = '<?php\n/**\n...') /opt/pear/share/pear/PHP/Token/Stream.php:147

The source code is syntactically okay.

This class is defined in /opt/pear/share/pear/PHP/Token.php but it looks like it can not be found.

  • 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-06T13:25:56+00:00Added an answer on June 6, 2026 at 1:25 pm

    I dumped the output of spl_autoload_functions() in Stream.php:147 and found out, that there is some Aitoc autoloader.

    The problem is caused by an Aitoc Magento extension.

    They have a function that simply unregisters all autoloaders.

    $autoloaders = spl_autoload_functions();
    if ($autoloaders and is_array($autoloaders) && !empty($autoloaders))
    {
        foreach ($autoloaders as $autoloader)
        {
            spl_autoload_unregister($autoloader);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a simple Web interface to running PHPUnit test suites? i.e. a PHP
I am trying to get PHPUnit up and running the following are the steps
Running PHP under IIS on my Win XP Pro system. I cannot debug my
Running PHP debug session in Netbeans always opens as a new tab in browser
When running the mvn test command, the PHPUnit tests are run. The problem I
I'v been trying to get phpunit up and running but for some reason i'm
I am running PHP 5.3.6 and the latest version of PHPUnit from Github. When
I'm having a problem when running my PHPUnit test of creating a new profile,
I'm running into the following problem when setting up a whitelist for PHP: I've
I'm working on a test in phpunit and I'm running into an issue. I

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.