Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions tests/Core/Ruleset/RuleInclusionAbsoluteWindowsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
/**
* Tests for the \PHP_CodeSniffer\Ruleset class using a Windows-style absolute path to include a sniff.
*
* @covers \PHP_CodeSniffer\Ruleset
* @covers \PHP_CodeSniffer\Ruleset
* @requires OS ^WIN.*.
* @group Windows
*/
final class RuleInclusionAbsoluteWindowsTest extends TestCase
{
Expand Down Expand Up @@ -52,10 +54,6 @@ final class RuleInclusionAbsoluteWindowsTest extends TestCase
*/
public function initializeConfigAndRuleset()
{
if (DIRECTORY_SEPARATOR === '/') {
$this->markTestSkipped('Windows specific test');
}

$this->standard = __DIR__.'/'.basename(__FILE__, '.php').'.xml';
$repoRootDir = dirname(dirname(dirname(__DIR__)));

Expand Down Expand Up @@ -85,9 +83,7 @@ public function initializeConfigAndRuleset()
*/
public function resetRuleset()
{
if (DIRECTORY_SEPARATOR !== '/') {
file_put_contents($this->standard, $this->contents);
}
file_put_contents($this->standard, $this->contents);

}//end resetRuleset()

Expand Down