Skip to content

Commit

Permalink
Remove dependency on phpunit 7. Fixed call to getMockBuilder.
Browse files Browse the repository at this point in the history
  • Loading branch information
visto9259 committed Sep 7, 2020
1 parent 1cf814e commit 05c563a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"laminas/laminas-modulemanager": "^2.7.2",
"laminas/laminas-serializer": "^2.8",
"laminas/laminas-view": "^2.8.1",
"phpunit/phpunit": "^7.5.18 || ^8.5.1",
"phpunit/phpunit": "^8.5.1",
"php-coveralls/php-coveralls": "^2.1",
"squizlabs/php_codesniffer": "^3.4"
},
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/LmcCorsTest/ModuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ public function testAssertListenerIsCorrectlyRegistered()
{
$module = new Module();
$mvcEvent = $this->getMockBuilder('Laminas\Mvc\MvcEvent')->getMock();
$application = $this->getMockBuilder('Laminas\Mvc\Application', [], [], '', false)
$application = $this->getMockBuilder('Laminas\Mvc\Application')
->disableOriginalConstructor()
->getMock();
$eventManager = $this->getMockBuilder('Laminas\EventManager\EventManagerInterface')->getMock();
$serviceManager = $this->getMockBuilder('Laminas\ServiceManager\ServiceManager')->getMock();
$corsListener = $this->getMockBuilder('LmcCors\Mvc\CorsRequestListener', [], [], '', false)
$corsListener = $this->getMockBuilder('LmcCors\Mvc\CorsRequestListener')
->disableOriginalConstructor()
->getMock();

Expand Down

0 comments on commit 05c563a

Please sign in to comment.