From df96d7270caf5496b1bba57a3556d2981ae09f5d Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Wed, 6 Feb 2019 20:13:21 +0100 Subject: [PATCH] update to phpunit 7.5 --- composer.json | 2 +- phpunit.xml.dist | 6 +++--- tests/AltoRouterTest.php | 7 +------ 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 95c2a8e..4ee219b 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "php": ">=5.3.0" }, "require-dev": { - "phpunit/phpunit": "4.5.*", + "phpunit/phpunit": "7.5.*", "codeclimate/php-test-reporter": "dev-master" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0b974d5..5cbd378 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -7,9 +7,9 @@ - - ./vendor/ - + + ./AltoRouter.php + diff --git a/tests/AltoRouterTest.php b/tests/AltoRouterTest.php index 9444549..e966537 100644 --- a/tests/AltoRouterTest.php +++ b/tests/AltoRouterTest.php @@ -3,7 +3,6 @@ require 'AltoRouter.php'; class AltoRouterDebug extends AltoRouter{ - public function getNamedRoutes(){ return $this->namedRoutes; } @@ -11,7 +10,6 @@ class AltoRouterDebug extends AltoRouter{ public function getBasePath(){ return $this->basePath; } - } class SimpleTraversable implements Iterator{ @@ -41,10 +39,7 @@ class SimpleTraversable implements Iterator{ } -/** - * Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-07-14 at 17:47:46. - */ -class AltoRouterTest extends PHPUnit_Framework_TestCase +class AltoRouterTest extends PHPUnit\Framework\TestCase { /** * @var AltoRouter