Adapt Unit Tests code to PHPUnit 6

This commit is contained in:
Fabri Di Napoli
2017-03-09 00:35:08 +01:00
parent 16856fe6b6
commit 5df6eec070
37 changed files with 73 additions and 37 deletions

View File

@@ -3,8 +3,9 @@
namespace DesignPatterns\More\Delegation\Tests;
use DesignPatterns\More\Delegation;
use PHPUnit\Framework\TestCase;
class DelegationTest extends \PHPUnit_Framework_TestCase
class DelegationTest extends TestCase
{
public function testHowTeamLeadWriteCode()
{

View File

@@ -5,8 +5,9 @@ namespace DesignPatterns\More\EAV\Tests;
use DesignPatterns\More\EAV\Attribute;
use DesignPatterns\More\EAV\Entity;
use DesignPatterns\More\EAV\Value;
use PHPUnit\Framework\TestCase;
class EAVTest extends \PHPUnit_Framework_TestCase
class EAVTest extends TestCase
{
public function testCanAddAttributeToEntity()
{

View File

@@ -5,8 +5,9 @@ namespace DesignPatterns\More\Repository\Tests;
use DesignPatterns\More\Repository\MemoryStorage;
use DesignPatterns\More\Repository\Post;
use DesignPatterns\More\Repository\PostRepository;
use PHPUnit\Framework\TestCase;
class Repository extends \PHPUnit_Framework_TestCase
class Repository extends TestCase
{
public function testCanPersistAndFindPost()
{

View File

@@ -4,7 +4,7 @@ namespace DesignPatterns\More\ServiceLocator\Tests;
use DesignPatterns\More\ServiceLocator\LogService;
use DesignPatterns\More\ServiceLocator\ServiceLocator;
use PHPUnit_Framework_TestCase as TestCase;
use PHPUnit\Framework\TestCase;
class ServiceLocatorTest extends TestCase
{