Closed olivernybroe closed 4 years ago
I guess this is no longer relevant in v0.3 of Pest. 🤔
The expect()
API is now preferred (although the Global Assertions does exist as a polyfill). Obviously the functions are also still available directly in PHPUnit under the PHPUnit\Framework\*
namespace.
@owenvoke So you are thinking we should have a rector that converts to the expect
api?
Probably not as it doesn't map 1 to 1 with existing assertions. But could do for some of them. 🤷🏻 I was more saying that this issue probably isn't really necessary now.
Alright, let's close it then 👍
Create a new rector which is responsible for removing
$this
on methods that doesn't need them.The reason for using a new rector is so we can optionally enable/disable it and decouple it from the base rector which is about just refactoring to pest test cases, not making them nicer.
Pest docs