From 05c563a03b8295c5dfe44e331b02ac1e24e16d08 Mon Sep 17 00:00:00 2001 From: Eric Richer Date: Mon, 7 Sep 2020 11:44:34 -0400 Subject: [PATCH] Remove dependency on phpunit 7. Fixed call to getMockBuilder. --- composer.json | 2 +- composer.lock | 2 +- tests/LmcCorsTest/ModuleTest.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 656e547..09c3c89 100644 --- a/composer.json +++ b/composer.json @@ -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" }, diff --git a/composer.lock b/composer.lock index 9ac4fd0..7c96b53 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bb63b23d697d36af9cf80086d5638b4c", + "content-hash": "f0cbcdd52fc42e71b45b56a243fe8aed", "packages": [ { "name": "brick/varexporter", diff --git a/tests/LmcCorsTest/ModuleTest.php b/tests/LmcCorsTest/ModuleTest.php index 8a37f5c..98d9a2e 100644 --- a/tests/LmcCorsTest/ModuleTest.php +++ b/tests/LmcCorsTest/ModuleTest.php @@ -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();