Skip to content

About

Error handler plugin for the Testo testing framework (split-published from php-testo/testo)

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Error handler plugin for the Testo testing framework (split-published from php-testo/testo)

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages