Skip to content

Commit ab66220

Browse files
author
Nicolas Oelgart
committed
Require phpunit 5.4|6.0
1 parent 8256a10 commit ab66220

File tree

8 files changed

+7
-15
lines changed

8 files changed

+7
-15
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"php": "^7.0"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": "^5.1"
24+
"phpunit/phpunit": "^5.4.0|^6.0"
2525
},
2626
"scripts": {
2727
"test": "phpunit"

tests/AbstractTestBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use nicoSWD\Rules\Tokenizer;
1313
use nicoSWD\Rules\Expressions\Factory as ExpressionFactory;
1414

15-
abstract class AbstractTestBase extends \PHPUnit_Framework_TestCase
15+
abstract class AbstractTestBase extends \PHPUnit\Framework\TestCase
1616
{
1717
/**
1818
* @var Parser

tests/EvaluatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
use nicoSWD\Rules\Evaluator;
1111

12-
class EvaluatorTest extends \PHPUnit_Framework_TestCase
12+
class EvaluatorTest extends \PHPUnit\Framework\TestCase
1313
{
1414
/**
1515
* @var Evaluator

tests/ExpressionFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
use nicoSWD\Rules\Expressions\Factory;
1111

12-
class ExpressionFactoryTest extends \PHPUnit_Framework_TestCase
12+
class ExpressionFactoryTest extends \PHPUnit\Framework\TestCase
1313
{
1414
/**
1515
* @var Factory

tests/HighlighterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
use nicoSWD\Rules;
1111

12-
class HighlighterTest extends \PHPUnit_Framework_TestCase
12+
class HighlighterTest extends \PHPUnit\Framework\TestCase
1313
{
1414
/**
1515
* @var Rules\Highlighter

tests/RuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use nicoSWD\Rules;
1111

12-
class RuleTest extends \PHPUnit_Framework_TestCase
12+
class RuleTest extends \PHPUnit\Framework\TestCase
1313
{
1414
public function testBasicRuleWithCommentsEvaluatesCorrectly()
1515
{

tests/TokenizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
use nicoSWD\Rules;
1111

12-
class TokenizerTest extends \PHPUnit_Framework_TestCase
12+
class TokenizerTest extends \PHPUnit\Framework\TestCase
1313
{
1414
/**
1515
* @var Rules\Tokenizer

tests/methods/ToUpperCaseTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@ public function testSpacesBetweenVariableAndMethodWork()
2222
));
2323
}
2424

25-
/**
26-
* @todo : Rethink tokenizer
27-
*/
28-
public function testCommentsBeforeAndAfterPeriodWord()
29-
{
30-
// $this->assertTrue($this->evaluate('"bar" /* what */ . /*what */ toUpperCase() === "BAR"'));
31-
}
32-
3325
public function testIfCallOnStringLiteralsWorks()
3426
{
3527
$this->assertTrue($this->evaluate('"bar".toUpperCase() === "BAR"'));

0 commit comments

Comments
 (0)