Skip to content

Commit 80837ec

Browse files
committed
removing test requested in VerbalExpressions/PHPVerbalExpressi ons#20 that is made redundant by travis testing (builds should fail if psr-2 is not complied with)
1 parent a5049be commit 80837ec

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

tests/VerbalExpressions/PHPVerbalExpressions/VerbalExpressionsTest.php

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -573,56 +573,4 @@ public function testReplace()
573573
$this->assertEquals('/foo/mg', $regex->getRegex());
574574
$this->assertEquals('bazbarbaz', $regex->replace('foobarfoo', 'baz'));
575575
}
576-
577-
/*
578-
public function testPsr2()
579-
{
580-
$pathToRoot = dirname(dirname(dirname(__DIR__)));
581-
$pathToVendor = $pathToRoot . '/vendor';
582-
$pathToSrc = $pathToRoot . '/src';
583-
$pathToTests = $pathToRoot . '/tests';
584-
585-
if (
586-
!is_dir($pathToVendor)
587-
) {
588-
$this->markTestSkipped('Vendor directory not found.');
589-
return;
590-
} elseif (
591-
!is_dir($pathToSrc)
592-
) {
593-
$this->markTestSkipped('Source directory not found.');
594-
return;
595-
} elseif (
596-
!is_dir($pathToTests)
597-
) {
598-
$this->markTestSkipped('Tests directory not found.');
599-
return;
600-
}
601-
602-
foreach (array(
603-
$pathToTests,
604-
$pathToSrc,
605-
) as $dirToCheck) {
606-
$cmd = escapeshellcmd(
607-
'php-cs-fixer fix --level=psr2 --dry-run ' . $dirToCheck
608-
);
609-
exec($cmd, $output, $return_var);
610-
if ($output) {
611-
array_pop($output);
612-
$output = array_map('trim', $output);
613-
}
614-
615-
$this->assertEquals(
616-
0,
617-
$return_var,
618-
(
619-
'PSR-2 linter reported errors in ' .
620-
$dirToCheck .
621-
'/: ' .
622-
implode(';', $output)
623-
)
624-
);
625-
}
626-
}
627-
*/
628576
}

0 commit comments

Comments
 (0)