Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-08-03 22:35:22 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2018-08-03 22:48:01 +0300
commit625b51ece1385231c33c9e8265cfd17175768cf5 (patch)
treedd4d1cbc27126068301e46a23c61991d9c26d704
parentf16c62cfbf6272b49d0a5d9777aa85c464c3468c (diff)
update php version for unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
-rw-r--r--.travis.yml9
-rw-r--r--tests/unit/bootstrap.php2
-rw-r--r--tests/unit/controller/PageControllerTest.php4
3 files changed, 8 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index c19c380..f18097a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,9 @@
language: php
php:
- - 5.6
- - 7
+ - 7.0
+ - 7.1
+ - 7.2
env:
global:
@@ -36,8 +37,8 @@ script:
matrix:
include:
- - php: 5.6
+ - php: 7.0
env: DB=mysql
- - php: 5.6
+ - php: 7.0
env: DB=pgsql
fast_finish: true
diff --git a/tests/unit/bootstrap.php b/tests/unit/bootstrap.php
index 630e1ba..e79cc34 100644
--- a/tests/unit/bootstrap.php
+++ b/tests/unit/bootstrap.php
@@ -3,7 +3,7 @@ if (!defined('PHPUNIT_RUN')) {
define('PHPUNIT_RUN', 1);
}
require_once __DIR__ . '/../../../../lib/base.php';
-if(!class_exists('PHPUnit_Framework_TestCase')) {
+if(!class_exists('\PHPUnit\Framework\TestCase')) {
require_once('PHPUnit/Autoload.php');
}
\OC_App::loadApp('survey_server');
diff --git a/tests/unit/controller/PageControllerTest.php b/tests/unit/controller/PageControllerTest.php
index c0467cc..2a77655 100644
--- a/tests/unit/controller/PageControllerTest.php
+++ b/tests/unit/controller/PageControllerTest.php
@@ -22,12 +22,12 @@
namespace OCA\Survey_Server\Controller;
use OCA\Survey_Server\Service\StatisticService;
-use PHPUnit_Framework_TestCase;
use OCP\AppFramework\Http\TemplateResponse;
+use Test\TestCase;
-class PageControllerTest extends PHPUnit_Framework_TestCase {
+class PageControllerTest extends TestCase {
private $controller;
/** @var StatisticService | \PHPUnit_Framework_MockObject_MockObject */