diff --git a/.travis.yml b/.travis.yml index 84ba3b8..f4c0451 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,11 @@ language: php php: - - 5.4 - - 5.5 - 5.6 + - 7.0 + - 7.1 + - 7.2 + - 7.3 before_script: - composer install diff --git a/composer.json b/composer.json index 568a0a4..498f33d 100644 --- a/composer.json +++ b/composer.json @@ -9,11 +9,11 @@ } ], "require": { - "php": ">=5.3.0", + "php": ">=5.6.0", "symfony/process": "~2.0|~3.0|~4.0" }, "require-dev": { - "phpunit/phpunit": "~3.7" + "phpunit/phpunit": "^5.7" }, "autoload": { "psr-0": { "Nmap": "src/" } diff --git a/tests/Nmap/Tests/NmapTest.php b/tests/Nmap/Tests/NmapTest.php index 337bf43..f7fd519 100644 --- a/tests/Nmap/Tests/NmapTest.php +++ b/tests/Nmap/Tests/NmapTest.php @@ -258,7 +258,7 @@ public function testScanWithUserTimeout() */ public function testExecutableNotExecutable() { - $executor = $this->getMock('Nmap\Util\ProcessExecutor'); + $executor = $this->createMock('Nmap\Util\ProcessExecutor'); $executor ->expects($this->once()) ->method('execute') @@ -272,7 +272,7 @@ public function testExecutableNotExecutable() */ private function getProcessExecutorMock() { - $executor = $this->getMock('Nmap\Util\ProcessExecutor'); + $executor = $this->createMock('Nmap\Util\ProcessExecutor'); $executor ->expects($this->at(0)) ->method('execute')