amtgard/phpunit-extensions

PHPUnit Extensions

Installs: 11

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/amtgard/phpunit-extensions

v1.0.2 2025-06-23 00:20 UTC

This package is auto-updated.

Last update: 2025-09-23 00:48:33 UTC


README

Amtgard PHPUnit Extensions

Adds self::assertThrows(string $throwableClass, callable $callable) and self::assertDoesNotThrow(callable $callable) assertions.

assertThrows()

Takes a throwable classname. The callable must throw the exception and the exception class must match.

assertDoesNotThrow()

The callable must not throw.