amtgard / phpunit-extensions
PHPUnit Extensions
v1.0.2
2025-06-23 00:20 UTC
Requires
- php: >=8.1
Requires (Dev)
- phpunit/phpunit: ^11.2
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.