expectException(\League\Route\Http\Exception\NotFoundException::class); $testClass->get($this->getMockRequest()); } public function testNotFoundExceptionPost() { $testClass = new TestClass(); $this->expectException(\League\Route\Http\Exception\NotFoundException::class); $testClass->post($this->getMockRequest()); } public function testNotFoundExceptionPut() { $testClass = new TestClass(); $this->expectException(\League\Route\Http\Exception\NotFoundException::class); $testClass->put($this->getMockRequest()); } public function testNotFoundExceptionDelete() { $testClass = new TestClass(); $this->expectException(\League\Route\Http\Exception\NotFoundException::class); $testClass->delete($this->getMockRequest()); } public function testNotFoundExceptionPatch() { $testClass = new TestClass(); $this->expectException(\League\Route\Http\Exception\NotFoundException::class); $testClass->patch($this->getMockRequest()); } } class TestClass extends Controller // phpcs:ignore { }