@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | use _generated\CodeGuyActions; |
| 22 | 22 | |
| 23 | - /** |
|
| 24 | - * Define custom actions here |
|
| 25 | - */ |
|
| 23 | + /** |
|
| 24 | + * Define custom actions here |
|
| 25 | + */ |
|
| 26 | 26 | } |
@@ -11,10 +11,10 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | $I->wantTo('write lines with WriteToFile task'); |
| 13 | 13 | $I->taskWriteToFile('blogpost.md') |
| 14 | - ->line('****') |
|
| 15 | - ->line('hello world') |
|
| 16 | - ->line('****') |
|
| 17 | - ->run(); |
|
| 14 | + ->line('****') |
|
| 15 | + ->line('hello world') |
|
| 16 | + ->line('****') |
|
| 17 | + ->run(); |
|
| 18 | 18 | $I->seeFileFound('blogpost.md'); |
| 19 | 19 | $I->seeFileContentsEqual(<<<HERE |
| 20 | 20 | **** |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | public function appendToFile(CliGuy $I) |
| 29 | 29 | { |
| 30 | 30 | $I->taskWriteToFile('a.txt') |
| 31 | - ->append() |
|
| 32 | - ->line('hello world') |
|
| 33 | - ->run(); |
|
| 31 | + ->append() |
|
| 32 | + ->line('hello world') |
|
| 33 | + ->run(); |
|
| 34 | 34 | $I->seeFileFound('a.txt'); |
| 35 | 35 | $I->seeFileContentsEqual(<<<HERE |
| 36 | 36 | Ahello world |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | public function testWouldChange(CliGuy $I) |
| 43 | 43 | { |
| 44 | 44 | $writeTask = $I->taskWriteToFile('a.txt') |
| 45 | - ->append(); |
|
| 45 | + ->append(); |
|
| 46 | 46 | $I->assertEquals(false, $writeTask->wouldChange(), "No changes to test file."); |
| 47 | 47 | $writeTask->line('hello world'); |
| 48 | 48 | $I->assertEquals(true, $writeTask->wouldChange(), "Test file would change."); |
@@ -68,15 +68,15 @@ discard block |
||
| 68 | 68 | { |
| 69 | 69 | $I->wantTo('append lines with WriteToFile task, but only if pattern does not match'); |
| 70 | 70 | $I->taskWriteToFile('blogpost.md') |
| 71 | - ->line('****') |
|
| 72 | - ->line('hello world') |
|
| 73 | - ->line('****') |
|
| 74 | - ->appendUnlessMatches('/hello/', 'Should not add this') |
|
| 75 | - ->appendUnlessMatches('/goodbye/', 'Should add this') |
|
| 76 | - ->appendIfMatches('/hello/', ' and should also add this') |
|
| 77 | - ->appendIfMatches('/goodbye/', ' but should not add this') |
|
| 78 | - ->appendIfMatches('/should/', '!') |
|
| 79 | - ->run(); |
|
| 71 | + ->line('****') |
|
| 72 | + ->line('hello world') |
|
| 73 | + ->line('****') |
|
| 74 | + ->appendUnlessMatches('/hello/', 'Should not add this') |
|
| 75 | + ->appendUnlessMatches('/goodbye/', 'Should add this') |
|
| 76 | + ->appendIfMatches('/hello/', ' and should also add this') |
|
| 77 | + ->appendIfMatches('/goodbye/', ' but should not add this') |
|
| 78 | + ->appendIfMatches('/should/', '!') |
|
| 79 | + ->run(); |
|
| 80 | 80 | $I->seeFileFound('blogpost.md'); |
| 81 | 81 | $I->seeFileContentsEqual(<<<HERE |
| 82 | 82 | **** |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | $initialFileSize = filesize($sampleCss); |
| 12 | 12 | |
| 13 | 13 | $I->taskMinify($sampleCss) |
| 14 | - ->to('minifiedSample.css') |
|
| 15 | - ->run(); |
|
| 14 | + ->to('minifiedSample.css') |
|
| 15 | + ->run(); |
|
| 16 | 16 | |
| 17 | 17 | $I->seeFileFound($outputCss); |
| 18 | 18 | $minifiedFileSize = filesize($outputCss); |
@@ -90,25 +90,25 @@ |
||
| 90 | 90 | $this->checkResources($targets); |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | - /** |
|
| 94 | - * Wrapper method around phps is_dir() |
|
| 95 | - * |
|
| 96 | - * @param string $directory |
|
| 97 | - * |
|
| 98 | - * @return bool |
|
| 99 | - */ |
|
| 93 | + /** |
|
| 94 | + * Wrapper method around phps is_dir() |
|
| 95 | + * |
|
| 96 | + * @param string $directory |
|
| 97 | + * |
|
| 98 | + * @return bool |
|
| 99 | + */ |
|
| 100 | 100 | protected function isDir($directory) |
| 101 | 101 | { |
| 102 | 102 | return is_dir($directory); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - /** |
|
| 106 | - * Wrapper method around phps file_exists() |
|
| 107 | - * |
|
| 108 | - * @param string $file |
|
| 109 | - * |
|
| 110 | - * @return bool |
|
| 111 | - */ |
|
| 105 | + /** |
|
| 106 | + * Wrapper method around phps file_exists() |
|
| 107 | + * |
|
| 108 | + * @param string $file |
|
| 109 | + * |
|
| 110 | + * @return bool |
|
| 111 | + */ |
|
| 112 | 112 | protected function isFile($file) |
| 113 | 113 | { |
| 114 | 114 | return file_exists($file); |
@@ -1,7 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use AspectMock\Test as test; |
|
| 4 | - |
|
| 5 | 3 | class HgTest extends \Codeception\TestCase\Test |
| 6 | 4 | { |
| 7 | 5 | /** |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Robo\Task\Base; |
| 3 | 3 | |
| 4 | -use Robo\Common\ExecTrait; |
|
| 5 | 4 | use Robo\Contract\CommandInterface; |
| 6 | 5 | use Robo\Contract\PrintedInterface; |
| 7 | 6 | use Robo\Contract\SimulatedInterface; |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Robo\Exception\TaskException; |
| 6 | 6 | use Robo\Task\BaseTask; |
| 7 | 7 | use Robo\Contract\CommandInterface; |
| 8 | -use Symfony\Component\Process\Process; |
|
| 9 | 8 | |
| 10 | 9 | /** |
| 11 | 10 | * Executes Codeception tests |
@@ -83,7 +83,6 @@ |
||
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * Path to the bootstrap file. |
| 86 | - |
|
| 87 | 86 | * @param string $file |
| 88 | 87 | * |
| 89 | 88 | * @return $this |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use Robo\Contract\ProgressIndicatorAwareInterface; |
| 7 | 7 | use Robo\Contract\VerbosityThresholdInterface; |
| 8 | 8 | use Robo\Common\ProgressIndicatorAwareTrait; |
| 9 | - |
|
| 10 | 9 | use Psr\Log\LogLevel; |
| 11 | 10 | use Psr\Log\LoggerAwareInterface; |
| 12 | 11 | use Psr\Log\LoggerAwareTrait; |