Completed
Pull Request — master (#924)
by Greg
02:38
created
tests/_bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@
 block discarded – undo
6 6
     'debug' => true,
7 7
     'cacheDir' => '/tmp',
8 8
     'includePaths' => [
9
-        __DIR__.'/../src',
10
-        __DIR__.'/../vendor/symfony/process',
11
-        __DIR__.'/../vendor/symfony/console',
12
-        __DIR__.'/../vendor/henrikbjorn/lurker/src',
9
+        __DIR__ . '/../src',
10
+        __DIR__ . '/../vendor/symfony/process',
11
+        __DIR__ . '/../vendor/symfony/console',
12
+        __DIR__ . '/../vendor/henrikbjorn/lurker/src',
13 13
     ]
14 14
 ]);
Please login to merge, or discard this patch.
tests/unit/Task/GulpTest.php 1 patch
Spacing   +9 added lines, -10 removed lines patch added patch discarded remove patch
@@ -24,32 +24,32 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $this->assertEquals(
26 26
             $this->adjustQuotes("gulp 'default'"),
27
-            (new \Robo\Task\Gulp\Run('default','gulp'))->getCommand()
27
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->getCommand()
28 28
         );
29 29
 
30 30
         $this->assertEquals(
31 31
             $this->adjustQuotes("gulp 'another'"),
32
-            (new \Robo\Task\Gulp\Run('another','gulp'))->getCommand()
32
+            (new \Robo\Task\Gulp\Run('another', 'gulp'))->getCommand()
33 33
         );
34 34
 
35 35
         $this->assertEquals(
36 36
             $this->adjustQuotes("gulp 'default' --silent"),
37
-            (new \Robo\Task\Gulp\Run('default','gulp'))->silent()->getCommand()
37
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->silent()->getCommand()
38 38
         );
39 39
 
40 40
         $this->assertEquals(
41 41
             $this->adjustQuotes("gulp 'default' --no-color"),
42
-            (new \Robo\Task\Gulp\Run('default','gulp'))->noColor()->getCommand()
42
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->noColor()->getCommand()
43 43
         );
44 44
 
45 45
         $this->assertEquals(
46 46
             $this->adjustQuotes("gulp 'default' --color"),
47
-            (new \Robo\Task\Gulp\Run('default','gulp'))->color()->getCommand()
47
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->color()->getCommand()
48 48
         );
49 49
 
50 50
         $this->assertEquals(
51 51
             $this->adjustQuotes("gulp 'default' --tasks-simple"),
52
-            (new \Robo\Task\Gulp\Run('default','gulp'))->simple()->getCommand()
52
+            (new \Robo\Task\Gulp\Run('default', 'gulp'))->simple()->getCommand()
53 53
         );
54 54
     }
55 55
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $gulp = test::double('Robo\Task\Gulp\Run', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
59 59
 
60
-        $task = (new \Robo\Task\Gulp\Run('default','gulp'))->simple();
60
+        $task = (new \Robo\Task\Gulp\Run('default', 'gulp'))->simple();
61 61
         $this->assertEquals(
62 62
             $this->adjustQuotes("gulp 'default' --tasks-simple"),
63 63
             $task->getCommand());
@@ -69,12 +69,11 @@  discard block
 block discarded – undo
69 69
     {
70 70
         $isWindows = defined('PHP_WINDOWS_VERSION_MAJOR');
71 71
         $expected = $isWindows ?
72
-            'gulp "anotherWith weired!(\"\') Chars"' :
73
-            "gulp 'anotherWith weired!(\"'\\'') Chars'";
72
+            'gulp "anotherWith weired!(\"\') Chars"' : "gulp 'anotherWith weired!(\"'\\'') Chars'";
74 73
 
75 74
         $this->assertEquals(
76 75
             $expected,
77
-            (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars','gulp'))->getCommand()
76
+            (new \Robo\Task\Gulp\Run('anotherWith weired!("\') Chars', 'gulp'))->getCommand()
78 77
         );
79 78
     }
80 79
 }
Please login to merge, or discard this patch.
tests/functional/ExecTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         // variables are present.
65 65
         $task = $this->taskExec('env | wc -l')->interactive(false);
66 66
         $result = $task->run();
67
-        $start_count = (int) $result->getMessage();
67
+        $start_count = (int)$result->getMessage();
68 68
         $this->assertGreaterThan(0, $start_count);
69 69
 
70 70
         // Verify that we get the same amount of environment variables with
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
         $result = $task->run();
74 74
         $this->assertEquals(
75 75
             $start_count,
76
-            (int) $result->getMessage());
76
+            (int)$result->getMessage());
77 77
 
78 78
         // Now run the same command, but this time add another environment
79 79
         // variable, and see if our count increases by one.
80 80
         $task = $this->taskExec('env | wc -l')->interactive(false);
81 81
         $task->env('FOO', 'BAR');
82 82
         $result = $task->run();
83
-        $this->assertEquals($start_count + 1, (int) $result->getMessage());
83
+        $this->assertEquals($start_count + 1, (int)$result->getMessage());
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
tests/src/Fixtures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function mktmpdir($basedir = false)
48 48
     {
49
-        $tempfile = tempnam($basedir ?: $this->testDir ?: sys_get_temp_dir(),'robo-tests');
49
+        $tempfile = tempnam($basedir ?: $this->testDir ?: sys_get_temp_dir(), 'robo-tests');
50 50
         unlink($tempfile);
51 51
         mkdir($tempfile);
52 52
         $this->tmpDirs[] = $tempfile;
Please login to merge, or discard this patch.