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 57f7f5b commit bd80b5f
Show file tree
Hide file tree
Showing 2 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 @@ -22,7 +22,7 @@
],
"require": {
"php": "^8.3",
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^11.3",
"squizlabs/php_codesniffer": "^3.7",
"behat/behat": "^3.11.0",
"behat/mink": "^1.10.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/php/SilverStripeContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ protected function getContextMock()
{
$pageMock = $this->getMockBuilder(DocumentElement::class)
->disableOriginalConstructor()
->setMethods(array('find'))
->onlyMethods(array('find'))
->getMock();
$sessionMock = $this->getMockBuilder(Session::class)
->setConstructorArgs(array(
$this->getMockBuilder(DriverInterface::class)->getMock(),
$this->getMockBuilder(SelectorsHandler::class)->getMock()
))
->setMethods(array('getPage'))
->onlyMethods(array('getPage'))
->getMock();
$sessionMock->expects($this->any())
->method('getPage')
Expand Down

0 comments on commit bd80b5f

Please sign in to comment.