neighborhoods/throwable-diagnostic-phpunit-component

Utilities for testing software using ThrowableDiagnosticComponent.

1.0.1 2021-06-23 14:36 UTC

This package is auto-updated.

Last update: 2024-11-23 22:21:36 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