Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Nelwhix's avatar

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

0 likes
0 replies

Please or to participate in this conversation.