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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:01:33+00:00 2026-05-22T12:01:33+00:00

PhpUnit is currently not showing the stack trace for PHP errors that occur in

  • 0

PhpUnit is currently not showing the stack trace for PHP errors that occur in the code.

How do I configure it to do so?

  • 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-05-22T12:01:33+00:00Added an answer on May 22, 2026 at 12:01 pm

    PHPUnit uses an error handler function to trap and display errors, but from the PHP manual on error handlers,

    The following error types cannot be
    handled with a user defined function:
    E_ERROR, E_PARSE, E_CORE_ERROR,
    E_CORE_WARNING, E_COMPILE_ERROR,
    E_COMPILE_WARNING, and most of
    E_STRICT raised in the file where
    set_error_handler() is called.

    If you are running tests in a separate process, PHPUnit will get the error and message from the interpreter, but there will be no stack trace available. This is simply a limitation of the PHP interpreter. Fatal means fatal.

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

Sidebar

Related Questions

currently I'm using phpunit to write tests for some functions that access a mysql-database.
I am currently performing unit tests on my code (using PHPUnit and Jenkins) but
I'm currently working with PHPUnit to try and develop tests alongside what I'm writing,
I've got a PHPUnit mock object that returns 'return value' no matter what its
I'm just starting to try out phpunit on some existing code. The naming convention
I'd like to integrate PHPUnit to my framework. By this, I mean that I
How would you test the following code with phpUnit? class Product { protected $id
I'm currently using Zend Framework in conjunction with PHPUnit to conduct unit testing on
This is my phpunit test file <?php // DemoTest - test to prove the
PhpUnit::How can be __construct with protected variables tested? (not always we should add public

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.