Skip to content

Commit 8157eba

Browse files
committed
Adapt test to PHPUnit 6
1 parent ca5c0a0 commit 8157eba

26 files changed

+53
-26
lines changed

test/Behavioral/Command/CommandInvokerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
namespace Hyunk3l\Test\PhpDesignPatterns\Behavioral\Command;
44

55
use Hyunk3l\PhpDesignPatterns\Behavioral\Command\CommandInvoker;
6+
use PHPUnit\Framework\TestCase;
67

78
/**
89
* Class CommandInvokerTest
910
* @package PhpDesignPatterns\Tests\Behavioral\Command
1011
*/
11-
class CommandInvokerTest extends \PHPUnit_Framework_TestCase
12+
class CommandInvokerTest extends TestCase
1213
{
1314
/**
1415
* Testing the command.

test/Behavioral/Command/SwitchButtonCommandTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
namespace Hyunk3l\Test\PhpDesignPatterns\Behavioral\Command;
44

55
use Hyunk3l\PhpDesignPatterns\Behavioral\Command\SwitchButtonCommand;
6+
use PHPUnit\Framework\TestCase;
7+
68

79
/**
810
* Class SwitchButtonCommandTest
911
* @package PhpDesignPatterns\Tests\Behavioral\Command
1012
*/
11-
class SwitchButtonCommandTest extends \PHPUnit_Framework_TestCase
13+
class SwitchButtonCommandTest extends TestCase
1214
{
1315
/**
1416
* Testing execute.

test/Behavioral/Command/TvControlTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
namespace Hyunk3l\Test\PhpDesignPatterns\Behavioral\Command;
44

55
use Hyunk3l\PhpDesignPatterns\Behavioral\Command\TvControl;
6+
use PHPUnit\Framework\TestCase;
67

78
/**
89
* Class TvControlTest
910
* @package PhpDesignPatterns\Tests\Behavioral\Command
1011
*/
11-
class TvControlTest extends \PHPUnit_Framework_TestCase
12+
class TvControlTest extends TestCase
1213
{
1314
/**
1415
* Testing execute.

test/Creational/AbstractFactory/BmwCarFactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
use Hyunk3l\PhpDesignPatterns\Creational\AbstractFactory\BmwCarFactory;
66
use Hyunk3l\PhpDesignPatterns\Creational\AbstractFactory\AbstractCarFactory;
7+
use PHPUnit\Framework\TestCase;
78

8-
class BmwCarFactoryTest extends \PHPUnit_Framework_TestCase
9+
class BmwCarFactoryTest extends TestCase
910
{
1011
/**
1112
* Instance of BmwCarFactory.

test/Creational/AbstractFactory/MercedesCarFactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
use Hyunk3l\PhpDesignPatterns\Creational\AbstractFactory\MercedesCarFactory;
66
use Hyunk3l\PhpDesignPatterns\Creational\AbstractFactory\AbstractCarFactory;
7+
use PHPUnit\Framework\TestCase;
78

8-
class MercedesCarFactoryTest extends \PHPUnit_Framework_TestCase
9+
class MercedesCarFactoryTest extends TestCase
910
{
1011
/**
1112
* Instance of MercedesCarFactory.

test/Creational/AbstractFactory/VolkswagenCarFactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
use Hyunk3l\PhpDesignPatterns\Creational\AbstractFactory\VolkswagenCarFactory;
66
use Hyunk3l\PhpDesignPatterns\Creational\AbstractFactory\AbstractCarFactory;
7+
use PHPUnit\Framework\TestCase;
78

8-
class VolkswagenCarFactoryTest extends \PHPUnit_Framework_TestCase
9+
class VolkswagenCarFactoryTest extends TestCase
910
{
1011
/**
1112
* Instance of VolkswagenCarFactory.

test/Creational/Builder/ClassicWatchBuilderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
namespace Hyunk3l\Test\PhpDesignPatterns\Creational\Builder;
44

55
use Hyunk3l\PhpDesignPatterns\Creational\Builder\ClassicWatchBuilder;
6+
use PHPUnit\Framework\TestCase;
67

78
/**
89
* Class ClassicWatchBuilderTest
910
* @package PhpDesignPatterns\Tests\Creational\Builder
1011
*/
11-
class ClassicWatchBuilderTest extends \PHPUnit_Framework_TestCase
12+
class ClassicWatchBuilderTest extends TestCase
1213
{
1314
/**
1415
* Instance of ClassicWatchBuilder class.

test/Creational/Builder/ClassicWatchTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
namespace Hyunk3l\Test\PhpDesignPatterns\Creational\Builder;
44

55
use Hyunk3l\PhpDesignPatterns\Creational\Builder\ClassicWatch;
6+
use PHPUnit\Framework\TestCase;
67

78
/**
89
* Class ClassicWatchTest
910
* @package PhpDesignPatterns\Tests\Creational\Builder
1011
*/
11-
class ClassicWatchTest extends \PHPUnit_Framework_TestCase
12+
class ClassicWatchTest extends TestCase
1213
{
1314
/**
1415
* Testing add watch.

test/Creational/Builder/DirectorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
namespace Hyunk3l\Test\PhpDesignPatterns\Creational\Builder;
44

55
use Hyunk3l\PhpDesignPatterns\Creational\Builder\Director;
6+
use PHPUnit\Framework\TestCase;
67

78
/**
89
* Class DirectorTest
910
* @package PhpDesignPatterns\Tests\Creational\Builder
1011
*/
11-
class DirectorTest extends \PHPUnit_Framework_TestCase
12+
class DirectorTest extends TestCase
1213
{
1314
/**
1415
* Instance of Director class.

test/Creational/Builder/SportWatchBuilderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
namespace Hyunk3l\Test\PhpDesignPatterns\Creational\Builder;
44

55
use Hyunk3l\PhpDesignPatterns\Creational\Builder\SportWatchBuilder;
6+
use PHPUnit\Framework\TestCase;
67

78
/**
89
* Class SportWatchBuilderTest
910
* @package PhpDesignPatterns\Tests\Creational\Builder
1011
*/
11-
class SportWatchBuilderTest extends \PHPUnit_Framework_TestCase
12+
class SportWatchBuilderTest extends TestCase
1213
{
1314
/**
1415
* Instance of SportWatchBuilder class.

0 commit comments

Comments
 (0)