amtgard/phpunit-extensions

v1.0.1 2025-05-28 15:39 UTC

This package is auto-updated.

Last update: 2025-05-28 15:40:13 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.