Skip to content

Commit 2dea45e

Browse files
committed
Use the namespaced PHPUnit TestCase class
1 parent 290efb9 commit 2dea45e

15 files changed

+29
-15
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"ext-mbstring": "*"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": ">=4.8 <6.0",
17+
"phpunit/phpunit": ">=4.8.35 <6.0",
1818
"codeclimate/php-test-reporter": "dev-master"
1919
},
2020
"minimum-stability": "stable",

tests/badKeywordSyntaxes.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

33
use JsPhpize\JsPhpize;
4+
use PHPUnit\Framework\TestCase;
45

5-
class BadKeywordSyntaxesTest extends \PHPUnit_Framework_TestCase
6+
class BadKeywordSyntaxesTest extends TestCase
67
{
78
/**
89
* @expectedException \JsPhpize\Parser\Exception

tests/badSwitchSyntaxes.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

33
use JsPhpize\JsPhpize;
4+
use PHPUnit\Framework\TestCase;
45

5-
class BadSwitchSyntaxesTest extends \PHPUnit_Framework_TestCase
6+
class BadSwitchSyntaxesTest extends TestCase
67
{
78
/**
89
* @expectedException \JsPhpize\Parser\Exception

tests/badSyntaxes.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
use JsPhpize\JsPhpize;
44
use JsPhpize\Nodes\FunctionCall;
55
use JsPhpize\Nodes\Instruction;
6+
use PHPUnit\Framework\TestCase;
67

7-
class BadSyntaxesTest extends \PHPUnit_Framework_TestCase
8+
class BadSyntaxesTest extends TestCase
89
{
910
/**
1011
* @expectedException \JsPhpize\Parser\Exception

tests/compile.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

33
use JsPhpize\JsPhpize;
4+
use PHPUnit\Framework\TestCase;
45

5-
class CompileTest extends \PHPUnit_Framework_TestCase
6+
class CompileTest extends TestCase
67
{
78
public function caseProvider()
89
{

tests/constantRestrictions.php

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

33
use JsPhpize\JsPhpize;
44
use JsPhpize\Nodes\Constant;
5+
use PHPUnit\Framework\TestCase;
56

6-
class ConstantRestrictionsTest extends \PHPUnit_Framework_TestCase
7+
class ConstantRestrictionsTest extends TestCase
78
{
89
/**
910
* @expectedException \JsPhpize\Parser\Exception

tests/helpers.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use JsPhpize\JsPhpize;
4+
use PHPUnit\Framework\TestCase;
45

56
class MagicMethodObject
67
{
@@ -59,7 +60,7 @@ public function __get($name)
5960
}
6061
}
6162

62-
class DotHelperTest extends \PHPUnit_Framework_TestCase
63+
class DotHelperTest extends TestCase
6364
{
6465
protected function getDotHelper()
6566
{

tests/mainMethods.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

33
use JsPhpize\JsPhpize;
4+
use PHPUnit\Framework\TestCase;
45

5-
class MainMethodsTest extends \PHPUnit_Framework_TestCase
6+
class MainMethodsTest extends TestCase
67
{
78
public function testCompileFile()
89
{

tests/options.php

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

33
use JsPhpize\JsPhpize;
44
use JsPhpize\Lexer\Pattern;
5+
use PHPUnit\Framework\TestCase;
56

6-
class OptionsTest extends \PHPUnit_Framework_TestCase
7+
class OptionsTest extends TestCase
78
{
89
/**
910
* @group disallow

tests/render.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22

33
use JsPhpize\JsPhpize;
4+
use PHPUnit\Framework\TestCase;
45

5-
class RenderTest extends \PHPUnit_Framework_TestCase
6+
class RenderTest extends TestCase
67
{
78
public function caseProvider()
89
{

0 commit comments

Comments
 (0)