-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #597 from jolicode/tweak-path-completions
Tweak path directory suggestions to include a leading dir separator
- Loading branch information
Showing
6 changed files
with
48 additions
and
22 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
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,22 @@ | ||
<?php | ||
|
||
namespace Castor\Tests\Generated; | ||
|
||
use Castor\Tests\TaskTestCase; | ||
use Symfony\Component\Process\Exception\ProcessFailedException; | ||
|
||
class ArgsAutocompletePathTest extends TaskTestCase | ||
{ | ||
// args:autocomplete-path | ||
public function test(): void | ||
{ | ||
$process = $this->runTask(['args:autocomplete-path', 'FIXME(argument)']); | ||
|
||
if (0 !== $process->getExitCode()) { | ||
throw new ProcessFailedException($process); | ||
} | ||
|
||
$this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); | ||
$this->assertSame('', $process->getErrorOutput()); | ||
} | ||
} |
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,4 @@ | ||
array(1) { | ||
[0]=> | ||
string(15) "FIXME(argument)" | ||
} |
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,6 @@ | ||
In ssh.php line XXXX: | ||
|
||
[ERROR] The following process did not finish successfully (exit code 1): | ||
[ERROR] The following process did not finish successfully (exit code 255): | ||
|
||
scp -r [email protected]:/tmp/test.html /var/www/index.html | ||
|
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,6 @@ | ||
In ssh.php line XXXX: | ||
|
||
[ERROR] The following process did not finish successfully (exit code 1): | ||
[ERROR] The following process did not finish successfully (exit code 255): | ||
|
||
scp -r .../examples/ssh.php [email protected]:/var/www/index.html | ||
|