Skip to content

Commit

Permalink
Merge pull request #17 from gabriel-caruso/phpunit
Browse files Browse the repository at this point in the history
Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
  • Loading branch information
Rastusik authored Nov 13, 2017
2 parents 83082a7 + 19232c7 commit 02bc805
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"require": {
"php": ">=5.5",
"php-di/php-di": "~5.0",
"acclimate/container": "~1.0",
"acclimate/container": "~1.0 || ~2.0",
"doctrine/annotations": "~1.0",
"doctrine/cache": "~1.0"
},

"require-dev": {
"squizlabs/php_codesniffer": "~2.0",
"phpmd/phpmd" : "~2.0",
"phpunit/phpunit": "~4.8",
"phpunit/phpunit": "~4.8.35",
"zendframework/zendframework": "^2.5"
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
use Doctrine\Common\Cache\FilesystemCache;
use Doctrine\Common\Cache\RedisCache;
use Zend\ServiceManager\ServiceManager;
use PHPUnit\Framework\TestCase;

/**
* Class CacheFactoryTest
* @author mfris
* @package Test\DI\ZendFramework2\Service
*/
class CacheFactoryTest extends \PHPUnit_Framework_TestCase
class CacheFactoryTest extends TestCase
{

/**
Expand Down
3 changes: 2 additions & 1 deletion tests/DI/ZendFramework2/Service/DIContainerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
use Test\DI\ZendFramework2\Helper\Config;
use Zend\ServiceManager\Exception\ServiceNotCreatedException;
use Zend\ServiceManager\ServiceManager;
use PHPUnit\Framework\TestCase;

/**
* Class DIContainerFactoryTest
* @author mfris
* @package Test\DI\ZendFramework2\Service
*/
class DIContainerFactoryTest extends \PHPUnit_Framework_TestCase
class DIContainerFactoryTest extends TestCase
{

/**
Expand Down
3 changes: 2 additions & 1 deletion tests/DI/ZendFramework2/Service/PHPDIAbstractFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
use DI\ContainerBuilder;
use DI\ZendFramework2\Service\PHPDIAbstractFactory;
use Zend\ServiceManager\ServiceManager;
use PHPUnit\Framework\TestCase;

/**
* @author Matthieu Napoli <[email protected]>
*/
class PHPDIAbstractFactoryTest extends \PHPUnit_Framework_TestCase
class PHPDIAbstractFactoryTest extends TestCase
{
/**
* @var Container
Expand Down
3 changes: 2 additions & 1 deletion tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
use DI\ZendFramework2\Service\PHPDIAbstractFactory;
use Zend\Mvc\Service\ServiceManagerConfig;
use Zend\ServiceManager\ServiceManager;
use PHPUnit\Framework\TestCase;

/**
* @author Matthieu Napoli <[email protected]>
*/
class IntegrationTest extends \PHPUnit_Framework_TestCase
class IntegrationTest extends TestCase
{
/**
* @var Container
Expand Down

0 comments on commit 02bc805

Please sign in to comment.