Oct 5, 2022
0
Level 2
How to test a php api with Pestphp
I am trying to test endpoints on my plain php api. In a laravel project you can do something like:
test('app runs' , function () {
$this->get('/')->assertResponse(200);
})
On my plain php project I am getting this error: Call to undefined method 'get" on Testcase
Please or to participate in this conversation.