Skip to content
Permalink
Browse files

Mark testPluginFilenameCanBeAbsolute incomplete on Windows (#1914)

  • Loading branch information...
bdsl authored and muglug committed Jul 7, 2019
1 parent 5c4ac97 commit 210ac39d0004334b65675a6aca70b81f7a35a0a0
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/Config/PluginTest.php
@@ -4,6 +4,7 @@
use function define;
use function defined;
use const DIRECTORY_SEPARATOR;
use const PHP_OS;
use function dirname;
use function get_class;
use function getcwd;
@@ -17,6 +18,7 @@
use Psalm\Tests\Internal\Provider;
use Psalm\Tests\TestConfig;
use function sprintf;
use function stripos;
class PluginTest extends \Psalm\Tests\TestCase
{
@@ -819,6 +821,10 @@ public function testAfterAnalysisHooks()
*/
public function testPluginFilenameCanBeAbsolute()
{
if ($this->runningOnWindows()) {
$this->markTestIncomplete('Test fails on Windows - see https://github.com/vimeo/psalm/issues/1913');
}
$this->project_analyzer = $this->getProjectAnalyzerWithConfig(
TestConfig::loadFromXML(
dirname(__DIR__, 2) . DIRECTORY_SEPARATOR,
@@ -865,4 +871,9 @@ public function testPluginInvalidAbsoluteFilenameThrowsException() : void
$this->project_analyzer->getCodebase()->config->initializePlugins($this->project_analyzer);
}
private function runningOnWindows(): bool
{
return stripos(PHP_OS, 'WIN') === 0;
}
}

0 comments on commit 210ac39

Please sign in to comment.
You can’t perform that action at this time.