refactor(tests): special name method is deprecated in PHPUnit

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2025-10-21 00:10:47 +02:00
parent 77d1d3b953
commit be6b39f280
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

View file

@ -85,7 +85,7 @@ class TestMiddleware extends Middleware {
}
class TestController extends Controller {
public function method(): void {
public function controllerMethod(): void {
}
}
@ -115,10 +115,10 @@ class MiddlewareDispatcherTest extends \Test\TestCase {
private function getControllerMock() {
return $this->getMockBuilder(TestController::class)
->onlyMethods(['method'])
->onlyMethods(['controllerMethod'])
->setConstructorArgs(['app',
new Request(
['method' => 'GET'],
['controllerMethod' => 'GET'],
$this->createMock(IRequestId::class),
$this->createMock(IConfig::class)
)