Completed
Push — master ( a20e35...2a3e96 )
by Greg
03:21
created
tests/unit/Task/WatchTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $task->monitor(
40 40
             'src',
41
-            function () {
41
+            function() {
42 42
                 //do nothing
43 43
             },
44 44
             1 // CREATE
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         $task->monitor(
55 55
             'src',
56
-            function () {
56
+            function() {
57 57
                 //do nothing
58 58
             },
59 59
             [
Please login to merge, or discard this patch.
tests/_bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 $kernel->init([
6 6
     'debug' => true,
7 7
     'includePaths' => [
8
-        __DIR__.'/../src',
9
-        __DIR__.'/../vendor/symfony/process',
10
-        __DIR__.'/../vendor/symfony/console',
11
-        __DIR__.'/../vendor/henrikbjorn/lurker/src',
8
+        __DIR__ . '/../src',
9
+        __DIR__ . '/../vendor/symfony/process',
10
+        __DIR__ . '/../vendor/symfony/console',
11
+        __DIR__ . '/../vendor/henrikbjorn/lurker/src',
12 12
     ]
13 13
 ]);
Please login to merge, or discard this patch.
tests/cli/ExecCest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,20 +36,20 @@
 block discarded – undo
36 36
         // variables are present.
37 37
         $task = $I->taskExec('env | wc -l')->interactive(false);
38 38
         $result = $task->run();
39
-        $start_count = (int) $result->getMessage();
39
+        $start_count = (int)$result->getMessage();
40 40
         verify($start_count)->greaterThan(0);
41 41
 
42 42
         // Verify that we get the same amount of environment variables with
43 43
         // another exec call.
44 44
         $task = $I->taskExec('env | wc -l')->interactive(false);
45 45
         $result = $task->run();
46
-        verify((int) $result->getMessage())->equals($start_count);
46
+        verify((int)$result->getMessage())->equals($start_count);
47 47
 
48 48
         // Now run the same command, but this time add another environment
49 49
         // variable, and see if our count increases by one.
50 50
         $task = $I->taskExec('env | wc -l')->interactive(false);
51 51
         $task->env('FOO', 'BAR');
52 52
         $result = $task->run();
53
-        verify((int) $result->getMessage())->equals($start_count + 1);
53
+        verify((int)$result->getMessage())->equals($start_count + 1);
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
tests/unit/Task/SemVerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     public function testSemverParseFileWithWindowsLineEndings()
52 52
     {
53 53
         $fixturePath = tempnam(sys_get_temp_dir(), 'semver');
54
-        $semverFile = str_replace("\n", "\r\n", file_get_contents(codecept_data_dir().'.semver'));
54
+        $semverFile = str_replace("\n", "\r\n", file_get_contents(codecept_data_dir() . '.semver'));
55 55
         file_put_contents($fixturePath, $semverFile);
56 56
 
57 57
         $res = (new \Robo\Task\Development\SemVer($fixturePath))
Please login to merge, or discard this patch.
tests/cli/CollectionCest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 {
10 10
     public function _before(CliGuy $I)
11 11
     {
12
-        $I->amInPath(codecept_data_dir().'sandbox');
12
+        $I->amInPath(codecept_data_dir() . 'sandbox');
13 13
     }
14 14
 
15 15
     public function toRunMultipleTasksViaACollectionBuilder(CliGuy $I)
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                 ->mkdir('stuff')
149 149
             ->taskForEach($processList)
150 150
                 ->withBuilder(
151
-                    function ($builder, $key, $value) {
151
+                    function($builder, $key, $value) {
152 152
                         return $builder
153 153
                             ->taskFilesystemStack()
154 154
                                 ->touch("stuff/{$value}.txt");
@@ -205,22 +205,22 @@  discard block
 block discarded – undo
205 205
 
206 206
     public function toRollbackInCorrectOrder(CliGuy $I)
207 207
     {
208
-        $expected_order = [4,3,2,1];
208
+        $expected_order = [4, 3, 2, 1];
209 209
         $actual_order = [];
210 210
         $collection = $I->collectionBuilder();
211
-        $collection->rollbackCode(function () use (&$actual_order) {
211
+        $collection->rollbackCode(function() use (&$actual_order) {
212 212
             $actual_order[] = 1;
213 213
         });
214
-        $collection->rollbackCode(function () use (&$actual_order) {
214
+        $collection->rollbackCode(function() use (&$actual_order) {
215 215
             $actual_order[] = 2;
216 216
         });
217
-        $collection->rollbackCode(function () use (&$actual_order) {
217
+        $collection->rollbackCode(function() use (&$actual_order) {
218 218
             $actual_order[] = 3;
219 219
         });
220
-        $collection->rollbackCode(function () use (&$actual_order) {
220
+        $collection->rollbackCode(function() use (&$actual_order) {
221 221
             $actual_order[] = 4;
222 222
         });
223
-        $collection->addCode(function () {
223
+        $collection->addCode(function() {
224 224
             return Result::EXITCODE_ERROR;
225 225
         });
226 226
         $result = $collection->run();
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
         $collection = $I->getContainer()->get('collection');
421 421
 
422 422
         $collection->addCode(
423
-            function () {
423
+            function() {
424 424
                 throw new \RuntimeException('Error');
425 425
             }
426 426
         );
Please login to merge, or discard this patch.