Skip to content

Commit

Permalink
added support for PHPUnit 6
Browse files Browse the repository at this point in the history
  • Loading branch information
craue committed Apr 12, 2017
1 parent 0b24d7c commit 2868c74
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Tests/Exception/InvalidTypeExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace Craue\FormFlowBundle\Tests\Exception;

use Craue\FormFlowBundle\Exception\InvalidTypeException;
use PHPUnit\Framework\TestCase;

/**
* @author Christian Raue <christian.raue@gmail.com>
* @copyright 2011-2017 Christian Raue
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
class InvalidTypeExceptionTest extends \PHPUnit_Framework_TestCase {
class InvalidTypeExceptionTest extends TestCase {

/**
* @dataProvider dataExceptionMessage
Expand Down
3 changes: 2 additions & 1 deletion Tests/Form/FormFlowBcMethodsTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

namespace Craue\FormFlowBundle\Tests\Form;
use PHPUnit\Framework\TestCase;

/**
* Tests for BC.
Expand All @@ -12,7 +13,7 @@
* @copyright 2011-2017 Christian Raue
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
class FormFlowBcMethodsTest extends \PHPUnit_Framework_TestCase {
class FormFlowBcMethodsTest extends TestCase {

/**
* @expectedDeprecation Method Craue\FormFlowBundle\Form\FormFlow::getCurrentStep is deprecated since version 2.0. Use method getCurrentStepNumber instead.
Expand Down
3 changes: 2 additions & 1 deletion Tests/Form/FormFlowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Craue\FormFlowBundle\Event\GetStepsEvent;
use Craue\FormFlowBundle\Form\FormFlowEvents;
use PHPUnit\Framework\TestCase;
use Symfony\Component\EventDispatcher\EventDispatcher;

/**
Expand All @@ -14,7 +15,7 @@
* @copyright 2011-2017 Christian Raue
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
class FormFlowTest extends \PHPUnit_Framework_TestCase {
class FormFlowTest extends TestCase {

public function testStepListener() {
$steps = array(
Expand Down
3 changes: 2 additions & 1 deletion Tests/Form/StepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Craue\FormFlowBundle\Form\FormFlowInterface;
use Craue\FormFlowBundle\Form\Step;
use PHPUnit\Framework\TestCase;

/**
* @group unit
Expand All @@ -12,7 +13,7 @@
* @copyright 2011-2017 Christian Raue
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
class StepTest extends \PHPUnit_Framework_TestCase {
class StepTest extends TestCase {

public function testCreateFromConfig() {
// TODO replace by `$this->createMock('\Craue\FormFlowBundle\Form\FormFlowInterface')` as soon as PHPUnit >= 5.4 is required
Expand Down
3 changes: 2 additions & 1 deletion Tests/Storage/AbstractStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Craue\FormFlowBundle\Tests\Storage;

use Craue\FormFlowBundle\Storage\StorageInterface;
use PHPUnit\Framework\TestCase;

/**
* @group unit
Expand All @@ -11,7 +12,7 @@
* @copyright 2011-2017 Christian Raue
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
abstract class AbstractStorageTest extends \PHPUnit_Framework_TestCase {
abstract class AbstractStorageTest extends TestCase {

/**
* @var StorageInterface
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
},
"require-dev": {
"doctrine/common": "~2.3",
"phpunit/phpunit": "~4.1|~5.0",
"phpunit/phpunit": "^4.8.35|~5.7|~6.0",
"sensio/framework-extra-bundle": "~2.1|~3.0",
"symfony/phpunit-bridge": "~3.2",
"symfony/phpunit-bridge": "^3.2.5|~3.3@dev",
"symfony/symfony": "^2.1.3"
},
"minimum-stability": "stable",
Expand Down
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
backupGlobals="false"
bootstrap="Tests/bootstrap.php"
colors="true">
Expand Down

0 comments on commit 2868c74

Please sign in to comment.