Skip to content

Commit

Permalink
Merge pull request #174 from creative-commoners/pulls/6/phpunit11
Browse files Browse the repository at this point in the history
DEP Use PHPUnit 11
  • Loading branch information
GuySartorelli authored Sep 18, 2024
2 parents 2bf2b7d + c19bbd3 commit 90b6368
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 90b6368

Please sign in to comment.