neighborhoods/throwable-diagnostic-phpunit-component

Utilities for testing software using ThrowableDiagnosticComponent.

Installs: 1 642

Dependents: 0

Suggesters: 1

Security: 0

Stars: 2

Watchers: 15

Forks: 0

Open Issues: 0

pkg:composer/neighborhoods/throwable-diagnostic-phpunit-component

1.0.1 2021-06-23 14:36 UTC

This package is auto-updated.

Last update: 2025-09-24 00:07:59 UTC


README

Utilities for testing software using ThrowableDiagnosticComponent.

  • Prevent diagnosis of failed assertions
  • Mocks for commonly injected classes

Install

Via Composer as development dependency

composer require --dev neighborhoods/throwable-diagnostic-phpunit-component

PHPUnit Decorator

Failed PHPUnit assertions raise Exceptions. Throwable Diagnostic Component disturbs the Exception based communication between a test case and the PHPUnit framework. The PHPUnit decorator prevents Throwable Diagnostic Component from interfering with PHPUnit Exceptions.

Mocks

TBD