Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f76ee4

Browse files
committed
minor #2894 NonPrintableCharacterFixer - fix handling required PHP version on PHPUnit 4.x (keradus)
This PR was merged into the 2.4-dev branch. Discussion ---------- NonPrintableCharacterFixer - fix handling required PHP version on PHPUnit 4.x Commits ------- 0ae03ef NonPrintableCharacterFixer - fix handling required PHP version on PHPUnit 4.x
2 parents a3385aa + 0ae03ef commit 4f76ee4

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

tests/Fixer/Basic/NonPrintableCharacterFixerTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ function f(string $p)
206206
*/
207207
public function testFixWithEscapeSequencesInStringsLowerThanPhp70()
208208
{
209+
// @TODO remove condition after PHPUnit upgrade (and leave annotation)
210+
if (PHP_VERSION_ID >= 70000) {
211+
$this->markTestSkipped('PHP version to high.');
212+
}
213+
209214
$this->setExpectedExceptionRegExp(
210215
InvalidFixerConfigurationException::class,
211216
'/^\[non_printable_character\] Invalid configuration: Escape sequences require PHP 7\.0\+\.$/'

tests/Fixer/ClassNotation/VisibilityRequiredFixerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,12 @@ public function testInvalidConfigurationValue()
451451
$this->fixer->configure(['elements' => ['_unknown_']]);
452452
}
453453

454+
/**
455+
* @requires PHP <7.1
456+
*/
454457
public function testInvalidConfigurationValueForPHPVersion()
455458
{
459+
// @TODO remove condition after PHPUnit upgrade (and leave annotation)
456460
if (PHP_VERSION_ID >= 70100) {
457461
$this->markTestSkipped('PHP version to high.');
458462
}

0 commit comments

Comments
 (0)