pestphp / pest

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
https://pestphp.com
MIT License
9.06k stars 313 forks source link

`toBePrintable()` #1180

Open faissaloux opened 2 weeks ago

faissaloux commented 2 weeks ago

What:

Description:

This PR introduces toBePrintable expectation, which makes sure that the passed string is printable.

expect('printable')->toBePrintable();
expect("not\n\r\tprintable")->not->toBePrintable();