Commit 772dd147 authored by Markus Poerschke's avatar Markus Poerschke

Update PHPUnit to newest version (v6.0)

parent 8c903022
......@@ -30,7 +30,7 @@
"php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "^5.0"
"phpunit/phpunit": "^6.0"
},
"scripts": {
"test": "phpunit"
......
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
<phpunit colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
......
......@@ -2,7 +2,9 @@
namespace Eluceo\iCal\Component;
class CalendarIntegrationTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;
class CalendarIntegrationTest extends TestCase
{
/**
* @coversNothing
......
......@@ -2,7 +2,9 @@
namespace Eluceo\iCal;
class ComponentTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;
class ComponentTest extends TestCase
{
public function testFoldWithMultibyte()
{
......
......@@ -2,7 +2,9 @@
namespace Eluceo\iCal;
class ParameterBagTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;
class ParameterBagTest extends TestCase
{
public function testEscapeParamValue()
{
......
......@@ -2,7 +2,9 @@
namespace Eluceo\iCal\Property;
class ArrayValueTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;
class ArrayValueTest extends TestCase
{
/**
* @dataProvider arrayValuesProvider
......
......@@ -7,10 +7,12 @@
namespace Eluceo\iCal\Property\Event;
use PHPUnit\Framework\TestCase;
/**
* OrganizerTest
*/
class OrganizerTest extends \PHPUnit_Framework_TestCase
class OrganizerTest extends TestCase
{
public function testOrganizerValueOnly()
{
......
......@@ -2,7 +2,9 @@
namespace Eluceo\iCal\Property\Event;
class RecurrenceRuleTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;
class RecurrenceRuleTest extends TestCase
{
/**
* Example taken from http://www.kanzaki.com/docs/ical/rrule.html
......
......@@ -2,9 +2,9 @@
namespace Eluceo\iCal\Property;
use Eluceo\iCal\Property\StringValue;
use PHPUnit\Framework\TestCase;
class StringValueTest extends \PHPUnit_Framework_TestCase
class StringValueTest extends TestCase
{
public function testNoEscapeNeeded()
{
......
......@@ -2,15 +2,18 @@
namespace Eluceo\iCal;
class PropertyBagTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;
class PropertyBagTest extends TestCase
{
/**
* @todo Use Mocks instead of a real object!
*
* @expectedException \Exception
* @expectedExceptionMessage Property with name 'propName' already exists
*/
public function testPropertyAlreadyExistsOnAddingProperty()
{
$this->setExpectedException('\\Exception', "Property with name 'propName' already exists");
$propertyBag = new PropertyBag();
$propertyBag->add(new Property('propName', ''));
$propertyBag->add(new Property('propName', ''));
......
......@@ -2,7 +2,9 @@
namespace Eluceo\iCal;
class PropertyTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;
class PropertyTest extends TestCase
{
public function testPropertyWithSingleValue()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment