Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"symfony/property-access": "^2.6|^3.0|^4.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0",
"phpunit/phpunit": "^4.8.36",
"pimple/pimple": "^1.0",
"symfony/dependency-injection": "^2.6|^3.0|^4.0",
"symfony/framework-bundle": "^2.6|^3.0|^4.0",
Expand Down
3 changes: 2 additions & 1 deletion tests/Finite/Test/Acceptance/CallbacksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

use Finite\Loader\ArrayLoader;
use Finite\StateMachine\StateMachine;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class CallbacksTest extends \PHPUnit_Framework_TestCase
class CallbacksTest extends TestCase
{
/**
* @var StateMachine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
use PHPUnit\Framework\TestCase;

/**
* Test of ContainerCallbackPass
*
* @author Alexandre Bacco <[email protected]>
*/
class ContainerCallbackPassTest extends \PHPUnit_Framework_TestCase
class ContainerCallbackPassTest extends TestCase
{
/**
* @var ContainerBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

use Finite\Bundle\FiniteBundle\DependencyInjection\FiniteFiniteExtension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use PHPUnit\Framework\TestCase;

/**
* Test of FiniteExtension
*
* @author Yohan Giarelli <[email protected]>
*/
class FiniteFiniteExtensionTest extends \PHPUnit_Framework_TestCase
class FiniteFiniteExtensionTest extends TestCase
{
/**
* @var FiniteFiniteExtension
Expand Down
5 changes: 3 additions & 2 deletions tests/Finite/Test/ContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

use Finite\Context;
use Finite\Factory\PimpleFactory;
use Finite\StateMachine\StateMachine;
use Finite\StateMachine\StateMachine;
use Finite\State\State;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class ContextTest extends \PHPUnit_Framework_TestCase
class ContextTest extends TestCase
{
/**
* @var Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace Finite\Test\Event\Callback;

use Finite\Event\Callback\CallbackBuilderFactory;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class CallbackBuilderFactoryTest extends \PHPUnit_Framework_TestCase
class CallbackBuilderFactoryTest extends TestCase
{
public function testItConstructsCallbackBuilder()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/Finite/Test/Event/Callback/CallbackBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace Finite\Test\Event\Callback;

use Finite\Event\Callback\CallbackBuilder;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class CallbackBuilderTest extends \PHPUnit_Framework_TestCase
class CallbackBuilderTest extends TestCase
{
public function testItBuildsCallback()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
use Finite\Event\TransitionEvent;
use Finite\State\State;
use Finite\Transition\Transition;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class CallbackSpecificationTest extends \PHPUnit_Framework_TestCase
class CallbackSpecificationTest extends TestCase
{
private $stateMachine;

Expand Down
3 changes: 2 additions & 1 deletion tests/Finite/Test/Event/Callback/CallbackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace Finite\Test\Event\Callback;

use Finite\Event\Callback\Callback;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class CallbackTest extends \PHPUnit_Framework_TestCase
class CallbackTest extends TestCase
{
public function testInvokeWithGoodSpec()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/Finite/Test/Event/CallbackHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
use Finite\Event\CallbackHandler;
use Finite\Event\FiniteEvents;
use Finite\Event\TransitionEvent;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class CallbackHandlerTest extends \PHPUnit_Framework_TestCase
class CallbackHandlerTest extends TestCase
{
/**
* @var CallbackHandler
Expand Down
3 changes: 2 additions & 1 deletion tests/Finite/Test/Event/TransitionEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Finite\Test\Event;

use Finite\Event\TransitionEvent;
use PHPUnit\Framework\TestCase;

class TransitionEventTest extends \PHPUnit_Framework_TestCase
class TransitionEventTest extends TestCase
{
/**
* @var Finite\Transition\Transition
Expand Down
5 changes: 3 additions & 2 deletions tests/Finite/Test/Extension/Twig/FiniteExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
use Finite\Context;
use Finite\Extension\Twig\FiniteExtension;
use Finite\Factory\PimpleFactory;
use Finite\StateMachine\StateMachine;
use Finite\StateMachine\StateMachine;
use Finite\State\State;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class FiniteExtensionTest extends \PHPUnit_Framework_TestCase
class FiniteExtensionTest extends TestCase
{
/**
* @var \Twig_Environment
Expand Down
3 changes: 2 additions & 1 deletion tests/Finite/Test/Factory/PimpleFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use Finite\Factory\PimpleFactory;
use Finite\StateMachine\StateMachine;
use PHPUnit\Framework\TestCase;

class PimpleFactoryTest extends \PHPUnit_Framework_TestCase
class PimpleFactoryTest extends TestCase
{
/**
* @var PimpleFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace Finite\Test\Factory;

use Finite\Factory\SymfonyDependencyInjectionFactory;
use Finite\StateMachine\StateMachine;
use Finite\StateMachine\StateMachine;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use PHPUnit\Framework\TestCase;

class SymfonyDependencyInjectionFactoryTest extends \PHPUnit_Framework_TestCase
class SymfonyDependencyInjectionFactoryTest extends TestCase
{
/**
* @var PimpleFactory
Expand Down
3 changes: 2 additions & 1 deletion tests/Finite/Test/Loader/ArrayLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
use Finite\Loader\ArrayLoader;
use Finite\StateMachine\StateMachine;
use Symfony\Component\OptionsResolver\OptionsResolver;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class ArrayLoaderTest extends \PHPUnit_Framework_TestCase
class ArrayLoaderTest extends TestCase
{
/**
* @var ArrayLoader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use Finite\State\Accessor\PropertyPathStateAccessor;
use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException;
use PHPUnit\Framework\TestCase;

class PropertyPathStateAccessorTest extends \PHPUnit_Framework_TestCase
class PropertyPathStateAccessorTest extends TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject
Expand Down
5 changes: 3 additions & 2 deletions tests/Finite/Test/State/StateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
namespace Finite\Test\State;

use Finite\State\State;
use PHPUnit\Framework\TestCase;

/**
*
*
* @author Yohan Giarelli <[email protected]>
*/
class StateTest extends \PHPUnit_Framework_TestCase
class StateTest extends TestCase
{
/**
* @var State
Expand Down Expand Up @@ -53,7 +54,7 @@ public function testCanDataProvider()
array(array('t1', 't2'), 't2', 't3'),
);
}

/**
* @param string $transitionName
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace Finite\Test\StateMachine;

use Finite\StateMachine\SecurityAwareStateMachine;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class SecurityAwareStateMachineTest extends \PHPUnit_Framework_TestCase
class SecurityAwareStateMachineTest extends TestCase
{
/**
* @var SecurityAwareStateMachine
Expand Down
5 changes: 3 additions & 2 deletions tests/Finite/Test/StateMachineTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
namespace Finite\Test;

use Finite\State\State;
use Finite\StateMachine\StateMachine;
use Finite\StateMachine\StateMachine;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class StateMachineTestCase extends \PHPUnit_Framework_TestCase
class StateMachineTestCase extends TestCase
{
/**
* @var StateMachine
Expand Down
3 changes: 2 additions & 1 deletion tests/Finite/Test/Transition/TransitionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

use Finite\Transition\Transition;
use Symfony\Component\OptionsResolver\OptionsResolver;
use PHPUnit\Framework\TestCase;

/**
* @author Yohan Giarelli <[email protected]>
*/
class TransitionTest extends \PHPUnit_Framework_TestCase
class TransitionTest extends TestCase
{
/**
* @var Transition
Expand Down