-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable uninstall command for Windows
See php#190 for details.
- Loading branch information
Showing
5 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
Feature: Extensions can be uninstalled with PIE | ||
|
||
Example: The latest version of an extension can be downloaded | ||
# See https://github.com/php/pie/issues/190 for why this is non-Windows | ||
@non-windows | ||
Example: An extension can be uninstalled | ||
Given an extension was previously installed | ||
When I run a command to uninstall an extension | ||
Then the extension should not be installed anymore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Php\Pie\Installing; | ||
|
||
use Php\Pie\BinaryFile; | ||
use RuntimeException; | ||
|
||
use function sprintf; | ||
|
||
class FailedToRemoveExtension extends RuntimeException | ||
{ | ||
public static function withFilename(BinaryFile $extension): self | ||
{ | ||
return new self(sprintf( | ||
'Failed to remove extension file: %s', | ||
$extension->filePath, | ||
)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters