Search by

testo / error-handler

roxblnfk

Error handler interceptor plugin for the Testo testing framework.

Package info

github.com/php-testo/error-handler

pkg:composer/testo/error-handler

Fund package maintenance!

Boosty

Statistics

Installs: 2 383

Dependents: 1

Suggesters: 0

Stars: 0

0.1.2 2026-11-19 10:14 UTC

This package is auto-updated.

Last update: 2026-11-19 10:16:10 UTC


README

TESTO

Error handler plugin

Documentation Support on Boosty


Important

🪞 This is a read-only mirror.

Active development of the Testo project lives in php-testo/testo under plugin/error-handler/. This repository is automatically synchronized from there on every release.

File issues and pull requests in the main monorepo, not here.

About

Puts an error handler around every test and records the PHP warnings, notices and deprecations it raises on the test result, so they no longer scroll by while the test passes. Unhandled errors are printed to the stderr channel as PHP would print them, and with failOnError any captured error fails the test.

A handler installed before the test, such as an application bootstrap, still runs first. A test that installs its own handler and leaves it in place is reported as Risky unless it declares the change with #[ExpectErrorHandlerChange].

Install

composer require --dev testo/error-handler

PHP Latest Version on Packagist License Total Downloads