Replies: 2 comments
-
Hi, why dont' you post up here some PHPUnit tests that you find hard to convert to Pest? |
Beta Was this translation helpful? Give feedback.
-
From Pest's documentation ("Why Pest"):
So with Pest as an abstraction layer over PHPUnit, we have two stated goals:
I don't think there's anything in Pest that cannot be done with PHPUnit. With that said, Pest does add some of its own features (aside from the familiar API and better reporting and debugging):
|
Beta Was this translation helpful? Give feedback.
-
I've given Pest another chance, and I'm currently trying it out in another project. But I'm constantly bumping into some problems, as was the first time around (currently I'm exploring the utter uselessness of "with" for something other than trivial tests - no dynamic data, ignoring Carbon::setTestNow, unclear error messages etc.).
Is there actually something I can do in Pest, that cannot be done in clear PHPunit? And I don't mean here that it can be done slightly more easily or elegantly in Pest, but some kind of setup or expectation that cannot be done in PHPunit without writing half of the Pest codebase myself.
Beta Was this translation helpful? Give feedback.
All reactions