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 8693211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:29:50+00:00 2026-06-13T00:29:50+00:00

PHP: 5.2.6 PHPUnit: 3.4.15 XAMPP Stack Windows 7 User experience: Little to none Frustration

  • 0
  • PHP: 5.2.6
  • PHPUnit: 3.4.15
  • XAMPP Stack
  • Windows 7
  • User experience: Little to none
  • Frustration level: Severe

Let me cut to the chase. I’m trying to get the WordPress core tests to run, and they won’t. I’m not sure if its even possible with my versions…

Here’s what I’ve done so far: I created a very simple test in test_unit.php:

require_once ('PHPUnit\Framework.php');
class SimpleTest extends PHPUnit_Framework_TestCase
{
    public function testSomething()
    {
        $this->assertEquals(true, false);
    }
}

I run phpunit test_unit.php and it works (1 test, 1 assertion, 1 failure).

I still have some confusion about how PHPUnit is included, and I think someone said it changed to an autoloader of some kind in a newer version.

When I go to the wordpress tests folder, the directions say just run phpunit in that dir. This does not work. I’ve tried targeting specific files, using –configuration and –bootstrap flags to target those files specifically, and all that happens is the same thing: It gives me 1 blank line, and then returns to the command prompt.

Is there a specific file I need to include somewhere to get the WP test to run? A more important question: Will the WP tests even run w/ my outdated version of PHPUnit?

Your help is greatly appreciated!

  • 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-13T00:29:51+00:00Added an answer on June 13, 2026 at 12:29 am

    Try running phpunit from the parent directory of tests/. There is a clue in the docs where it says you can run a specific test with:

    phpunit tests/actions.php
    

    I.e. it expects tests to be a sub-directory.

    (The docs say “Running phpunit in the same directory as the tests/ directory“, which is a bit confusing isn’t it, but is clearly different from “Running phpunit in the tests/ directory” The readme for the unit tests is a bit clearer.)

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

Sidebar

Related Questions

I have installed PHPUnit on Windows 7, with PHP and Pear. I have a
In cmdline everything is OK: d:\xampp\htdocs\PhpProject1\Tests>phpunit TestStub.php PHPUnit 3.6.10 by Sebastian Bergmann. . Time:
I am running PHP unit as follows: phpunit --debug --verbose --coverage-clover=/tmp/test.xml and get the
I'm running server on Mandriva 2011 Apache 2.2.22 PHP 5.3.14 PHPUnit Version 3.3.17 Selenium
Is there a simple Web interface to running PHPUnit test suites? i.e. a PHP
Talk about falling at the first hurdle. My test script: <?php require_once('PHPUnit/Framework.php'); class TransferResponseTest
I want to use Maven for PHP with PHPUnit but when I run my
I am trying to create a mock object in PHP and PHPUnit. So far,
General Info: PHP 5.3.3 PHPUnit 3.4 Zend Framework 1.10.8 Phing build target <target name=test>
i have this simple rule: .PHONY: test test: src/*Test.php $(PHPUNIT) $?;\ it will look

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.