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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:53:45+00:00 2026-06-10T09:53:45+00:00

Normally the PHPUnit command-line runner gives output similar to following: PHPUnit 3.6.12 by Sebastian

  • 0

Normally the PHPUnit command-line runner gives output similar to following:

PHPUnit 3.6.12 by Sebastian Bergmann.

....

Time: 26 seconds, Memory: 10.00Mb

OK (4 tests, 84 assertions)

However, in one of my tests the following occurs:

PHPUnit 3.6.12 by Sebastian Bergmann.

.
...

Time: 26 seconds, Memory: 10.00Mb

OK (4 tests, 84 assertions)

It has something to do with one of the fixtures that’s included. If I comment out the correct fixture this oddity does not show up. However, I’ve tried removing every part of the code in the fixture file itself and this still happens. It’s not related to the first test. This happens regardless of which test is moved to the top of the test file. So it must be something with the model of the fixture itself. Yet, nothing stands out to me as being the culprit. It doesn’t actually seem to affect the test in anyway, but it bothers me that this is happening anyway. Anyone have any suggestions/seen this before? Thank you much!

  • 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-10T09:53:46+00:00Added an answer on June 10, 2026 at 9:53 am

    Something in your 2nd test outputs a carriage-return. I can reproduce your output with this simple file:

    <?php
    class EchoTest extends PHPUnit_Framework_TestCase{
    
    function test1(){ $this->assertEquals(3,1+2); }
    function test2(){ echo "\n";$this->assertEquals(3,1+2); }
    function test3(){ $this->assertEquals(8,3+5); }
    function test4(){ $this->assertEquals(11,5+6); }
    }
    

    If you don’t see any obvious echos, and your tests are in multiple files, the classic cause would be a stray blank line before <?php or after the closing ?>.

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

Sidebar

Related Questions

Normally when I want to run a php script from the command line I
Normally, I use the following code to serialize object to XML file. Everyday, I
When a PHPUnit test fails normally on my dev box (Linux Mint), it causes
Normally when you hit tab on an empty line in emacs python mode it
Normally if you wanted to execute a MySQL command you would just open up
Normally if you wanted to execute a MySQL command you would just open up
Normally you make a call to a service, it blocks until a thread in
Normally, you don't actually edit a file in vim. If you run vim foo
Normally all the document related to an iOS application are stored in a document
Normally when I want to change the connection for a Query Editor Window in

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.