Skip to content
Browse files

(Hopefully) Fixed bug #18651 : PHPunit Test cases for custom standard…

…s are not working on Windows
  • Loading branch information...
1 parent 0d7bd23 commit 97a8219d26fba9ee9b323d904c47bff44223bd77 @gsherwood gsherwood committed Jun 18, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 package.xml
  2. +2 −2 tests/Standards/AllSniffs.php
View
1 package.xml
@@ -36,6 +36,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
-- Override the equalsSpacing setting in a ruleset.xml file to change
- Squiz ClassDeclarationSniff now throws errors for > 1 space before extends/implements class name with ns seperator
- Squiz standard now warns about deprecated functions using Generic DeprecatedFunctionsSniff
+ - Fixed bug #18651 : PHPunit Test cases for custom standards are not working on Windows
- Fixed bug #19416 : Shorthand arrays cause bracket spacing errors
- Fixed bug #19421 : phpcs doesn't recognize ${x} as equivalent to $x
- Fixed bug #19428 : PHPCS Report "hgblame" doesn't support windows paths
View
4 tests/Standards/AllSniffs.php
@@ -75,9 +75,9 @@ public static function suite()
foreach ($standards as $standard) {
if ($isInstalled === false) {
- $standardDir = $standardsDir.'/'.$standard.'/Tests/';
+ $standardDir = $standardsDir.DIRECTORY_SEPARATOR.$standard.DIRECTORY_SEPARATOR.'Tests'.DIRECTORY_SEPARATOR;
} else {
- $standardDir = dirname(__FILE__).'/'.$standard.'/Tests/';
+ $standardDir = dirname(__FILE__).DIRECTORY_SEPARATOR.$standard.DIRECTORY_SEPARATOR.'Tests'.DIRECTORY_SEPARATOR;
}
if (is_dir($standardDir) === false) {

0 comments on commit 97a8219

Please sign in to comment.
Something went wrong with that request. Please try again.