Skip to content

Commit

Permalink
DEP Use PHPUnit 11
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Sep 9, 2024
1 parent 208558a commit 60638c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"paragonie/constant_time_encoding": "^2.6"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^11.3",
"squizlabs/php_codesniffer": "^3",
"silverstripe/documentation-lint": "^1",
"silverstripe/recipe-testing": "^4",
Expand Down
2 changes: 1 addition & 1 deletion tests/php/RegisterHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function testRegisterReturnsEncryptedSecret()

/** @var RegisterHandler|MockObject $handler */
$handler = $this->getMockBuilder(RegisterHandler::class)
->setMethods(['getTotp'])
->onlyMethods(['getTotp'])
->getMock();
$handler->expects($this->once())->method('getTotp')->willReturn(
/** @var TOTP|MockObject $totpMock */
Expand Down
2 changes: 1 addition & 1 deletion tests/php/VerifyHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function testVerify()
$this->request->setBody(json_encode(['code' => '135246']));
/** @var VerifyHandler&MockObject $handler */
$handler = $this->getMockBuilder(VerifyHandler::class)
->setMethods(['getTotp'])
->onlyMethods(['getTotp'])
->getMock();

$handler->expects($this->once())->method('getTotp')->willReturn(
Expand Down

0 comments on commit 60638c8

Please sign in to comment.