diff --git a/composer.json b/composer.json index 6503324..4778d07 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "guzzlehttp/guzzle": "^7" }, "require-dev": { - "phpunit/phpunit": "^9.6", + "phpunit/phpunit": "^11.3", "squizlabs/php_codesniffer": "^3", "silverstripe/standards": "^1", "phpstan/extension-installer": "^1.3" diff --git a/tests/EnvironmentCheckerTest.php b/tests/EnvironmentCheckerTest.php index f8e2c02..d373a82 100644 --- a/tests/EnvironmentCheckerTest.php +++ b/tests/EnvironmentCheckerTest.php @@ -35,7 +35,7 @@ public function testOnlyLogsWithErrors() $logger = $this->getMockBuilder(Logger::class) ->disableOriginalConstructor() - ->setMethods(['log']) + ->onlyMethods(['log']) ->getMock(); $logger->expects($this->never())->method('log'); @@ -55,7 +55,7 @@ public function testLogsWithWarnings() $logger = $this->getMockBuilder(Logger::class) ->disableOriginalConstructor() - ->setMethods(['log']) + ->onlyMethods(['log']) ->getMock(); $logger->expects($this->once()) @@ -80,7 +80,7 @@ public function testLogsWithErrors() $logger = $this->getMockBuilder(Logger::class) ->disableOriginalConstructor() - ->setMethods(['log']) + ->onlyMethods(['log']) ->getMock(); $logger->expects($this->once())