From c357ddbafa4a6f66822db6528c07268f60b5c28d Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sun, 23 Sep 2018 21:03:34 +0200 Subject: [PATCH] Support phpunit 7, let travis test PHP 7.2 and 7.1 --- .travis.yml | 3 ++- tests/Lib/Converter/HtmlTest.php | 4 ++-- tests/Lib/Search/QueryParserTest.php | 2 +- tests/html2tomboyXslTest.php | 5 +++-- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 09c9a85..c7216ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,8 @@ addons: - diffutils - xsltproc php: - - 7 + - 7.2 + - 7.1 - 5.6 script: - cd tests diff --git a/tests/Lib/Converter/HtmlTest.php b/tests/Lib/Converter/HtmlTest.php index b02e39c..7af71d7 100644 --- a/tests/Lib/Converter/HtmlTest.php +++ b/tests/Lib/Converter/HtmlTest.php @@ -2,7 +2,7 @@ require_once __DIR__ . '/../../../lib/converter/base.php'; require_once __DIR__ . '/../../../lib/converter/html.php'; -class Lib_Converter_HtmlTest extends PHPUnit_Framework_TestCase +class Lib_Converter_HtmlTest extends \PHPUnit\Framework\TestCase { public function testConvert() { @@ -28,4 +28,4 @@ class Lib_Converter_HtmlTest extends PHPUnit_Framework_TestCase ); } } -?> \ No newline at end of file +?> diff --git a/tests/Lib/Search/QueryParserTest.php b/tests/Lib/Search/QueryParserTest.php index 122138f..4e706f9 100644 --- a/tests/Lib/Search/QueryParserTest.php +++ b/tests/Lib/Search/QueryParserTest.php @@ -3,7 +3,7 @@ require_once __DIR__ . '/../../../lib/search/queryparser.php'; use OCA\Grauphel\Search\Queryparser; -class Lib_Search_QueryParserTest extends PHPUnit_Framework_TestCase +class Lib_Search_QueryParserTest extends \PHPUnit\Framework\TestCase { public function testParseSimple() { diff --git a/tests/html2tomboyXslTest.php b/tests/html2tomboyXslTest.php index 5e9139e..199f2e4 100644 --- a/tests/html2tomboyXslTest.php +++ b/tests/html2tomboyXslTest.php @@ -1,5 +1,5 @@ \ No newline at end of file +?> -- 2.30.2