amtgard / phpunit-extensions
PHPUnit Extensions
v1.0.1
2025-05-28 15:39 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.