From c3424df1f026854ed8adbfdf8d96da7a6562a8dd Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 24 Jan 2018 17:23:59 +0100 Subject: Require PHPUnit 6.5 or higher Signed-off-by: Joas Schilling --- apps/dav/tests/unit/CalDAV/Publishing/PublisherTest.php | 3 ++- apps/dav/tests/unit/bootstrap.php | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'apps/dav') diff --git a/apps/dav/tests/unit/CalDAV/Publishing/PublisherTest.php b/apps/dav/tests/unit/CalDAV/Publishing/PublisherTest.php index b2ba8ba119a..36aa4fa449b 100644 --- a/apps/dav/tests/unit/CalDAV/Publishing/PublisherTest.php +++ b/apps/dav/tests/unit/CalDAV/Publishing/PublisherTest.php @@ -25,8 +25,9 @@ namespace OCA\DAV\Tests\unit\CalDAV\Publishing; use OCA\DAV\CalDAV\Publishing\Xml\Publisher; use Sabre\Xml\Writer; +use Test\TestCase; -class PublisherTest extends \PHPUnit_Framework_TestCase { +class PublisherTest extends TestCase { const NS_CALENDARSERVER = 'http://calendarserver.org/ns/'; diff --git a/apps/dav/tests/unit/bootstrap.php b/apps/dav/tests/unit/bootstrap.php index 178bc695b6a..a2ad505342b 100644 --- a/apps/dav/tests/unit/bootstrap.php +++ b/apps/dav/tests/unit/bootstrap.php @@ -26,10 +26,6 @@ if (!defined('PHPUNIT_RUN')) { require_once __DIR__.'/../../../../lib/base.php'; -if(!class_exists('PHPUnit_Framework_TestCase')) { - require_once('PHPUnit/Autoload.php'); -} - \OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true); \OC_App::loadApp('dav'); -- cgit v1.2.3