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
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.