phputil / kahlan
Additional matchers for Kahlan
v0.2.1
2023-10-03 16:29 UTC
Requires
- ext-mbstring: *
- ext-pcre: *
Requires (Dev)
- kahlan/kahlan: ^5.2
README
Additional matchers for Kahlan
Install
Requires PHP 7 and the extensions
pcre
andmbstring
composer require phputil/kahlan --dev
See tips for help.
Matchers
- Exception:
- toThrowAnExceptionThatMatches - compares an exception message with the given Regular Expression
- toThrowAnExceptionWithCode - compares an exception code with the given code
- String:
- toHaveStringLength - compares a multi-byte string length with the given length
Suggestions? Please open an Issue.