Skip to content

Commit

Permalink
ignore case of built-in cmd.exe commands
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Nov 4, 2024
1 parent 46c203f commit a56fe7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/ExecutableFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ public function testFindBuiltInCommandOnWindows()
}

$finder = new ExecutableFinder();
$this->assertSame('rmdir', $finder->find('RMDIR'));
$this->assertSame('cd', $finder->find('cd'));
$this->assertSame('move', $finder->find('MoVe'));
$this->assertSame('rmdir', strtolower($finder->find('RMDIR')));
$this->assertSame('cd', strtolower($finder->find('cd')));
$this->assertSame('move', strtolower($finder->find('MoVe')));
}

private function assertSamePath($expected, $tested)
Expand Down

0 comments on commit a56fe7b

Please sign in to comment.