Skip to content

Skip testEditorUrlWithRelativePath() test on PHPStorm console#2229

Merged
ondrejmirtes merged 3 commits intophpstan:1.10.xfrom
staabm:skip
Feb 8, 2023
Merged

Skip testEditorUrlWithRelativePath() test on PHPStorm console#2229
ondrejmirtes merged 3 commits intophpstan:1.10.xfrom
staabm:skip

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Feb 8, 2023

Skip the only test which does not run successfully in the PHPStorm console.

see phpstan/phpstan#8854
I am not the only one with this problem, see #1927 (comment)

public function testEditorUrlWithRelativePath(): void
{
if ('JetBrains-JediTerm' === getenv('TERMINAL_EMULATOR')) {
$this->markTestSkipped('PHPStorm console does not support links in console.');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I don't like yoda conditions
  2. It's PhpStorm.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, fixed

@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented Feb 8, 2023

I verified this change makes the phpunit job run successfully on my machine.

@ondrejmirtes ondrejmirtes merged commit 6087702 into phpstan:1.10.x Feb 8, 2023
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you.

@staabm staabm deleted the skip branch February 8, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants