diff --git a/test/solidlsp/php/test_php_basic.py b/test/solidlsp/php/test_php_basic.py index 68207dca..5396687d 100644 --- a/test/solidlsp/php/test_php_basic.py +++ b/test/solidlsp/php/test_php_basic.py @@ -1,3 +1,4 @@ +import platform from pathlib import Path import pytest @@ -93,6 +94,9 @@ class TestPhpLanguageServers: @pytest.mark.parametrize("language_server", [Language.PHP, Language.PHP_PHPACTOR], indirect=True) @pytest.mark.parametrize("repo_path", [Language.PHP], indirect=True) def test_find_references_within_file(self, language_server: SolidLanguageServer, repo_path: Path) -> None: + if language_server.language == Language.PHP_PHPACTOR and platform.system() == "Windows": + pytest.skip("Phpactor references test not working on Windows, skipping for now") + index_php_path = str(repo_path / "index.php") # In index.php (0-indexed lines): @@ -141,6 +145,9 @@ class TestPhpLanguageServers: @pytest.mark.parametrize("language_server", [Language.PHP, Language.PHP_PHPACTOR], indirect=True) @pytest.mark.parametrize("repo_path", [Language.PHP], indirect=True) def test_find_references_across_files(self, language_server: SolidLanguageServer, repo_path: Path) -> None: + if language_server.language_server.language == Language.PHP_PHPACTOR and platform.system() == "Windows": + pytest.skip("Phpactor references test not working on Windows, skipping for now") + helper_php_path = str(repo_path / "helper.php") # In index.php (0-indexed lines): # Line 13: helperFunction(); // Usage of helperFunction