Skip to content

Commit

Permalink
Require phpunit 5.4|6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Oelgart committed Oct 13, 2017
1 parent 8256a10 commit ab66220
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^5.1"
"phpunit/phpunit": "^5.4.0|^6.0"
},
"scripts": {
"test": "phpunit"
Expand Down
2 changes: 1 addition & 1 deletion tests/AbstractTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use nicoSWD\Rules\Tokenizer;
use nicoSWD\Rules\Expressions\Factory as ExpressionFactory;

abstract class AbstractTestBase extends \PHPUnit_Framework_TestCase
abstract class AbstractTestBase extends \PHPUnit\Framework\TestCase
{
/**
* @var Parser
Expand Down
2 changes: 1 addition & 1 deletion tests/EvaluatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
use nicoSWD\Rules\Evaluator;

class EvaluatorTest extends \PHPUnit_Framework_TestCase
class EvaluatorTest extends \PHPUnit\Framework\TestCase
{
/**
* @var Evaluator
Expand Down
2 changes: 1 addition & 1 deletion tests/ExpressionFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
use nicoSWD\Rules\Expressions\Factory;

class ExpressionFactoryTest extends \PHPUnit_Framework_TestCase
class ExpressionFactoryTest extends \PHPUnit\Framework\TestCase
{
/**
* @var Factory
Expand Down
2 changes: 1 addition & 1 deletion tests/HighlighterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
use nicoSWD\Rules;

class HighlighterTest extends \PHPUnit_Framework_TestCase
class HighlighterTest extends \PHPUnit\Framework\TestCase
{
/**
* @var Rules\Highlighter
Expand Down
2 changes: 1 addition & 1 deletion tests/RuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use nicoSWD\Rules;

class RuleTest extends \PHPUnit_Framework_TestCase
class RuleTest extends \PHPUnit\Framework\TestCase
{
public function testBasicRuleWithCommentsEvaluatesCorrectly()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/TokenizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
use nicoSWD\Rules;

class TokenizerTest extends \PHPUnit_Framework_TestCase
class TokenizerTest extends \PHPUnit\Framework\TestCase
{
/**
* @var Rules\Tokenizer
Expand Down
8 changes: 0 additions & 8 deletions tests/methods/ToUpperCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ public function testSpacesBetweenVariableAndMethodWork()
));
}

/**
* @todo : Rethink tokenizer
*/
public function testCommentsBeforeAndAfterPeriodWord()
{
// $this->assertTrue($this->evaluate('"bar" /* what */ . /*what */ toUpperCase() === "BAR"'));
}

public function testIfCallOnStringLiteralsWorks()
{
$this->assertTrue($this->evaluate('"bar".toUpperCase() === "BAR"'));
Expand Down

0 comments on commit ab66220

Please sign in to comment.