Completed
Pull Request — master (#924)
by Greg
02:28
created
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.
tests/functional/AssetsTest.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,28 +25,28 @@
 block discarded – undo
25 25
     public function testCssMinification()
26 26
     {
27 27
         if (version_compare(PHP_VERSION, '7.2.0') >= 0) {
28
-          $this->markTestSkipped('natxet/cssmin uses deprecated "each()" function (PHP 7.2+)');
28
+            $this->markTestSkipped('natxet/cssmin uses deprecated "each()" function (PHP 7.2+)');
29 29
         }
30 30
 
31 31
         $this->fixtures->createAndCdToSandbox();
32 32
 
33
-				$sampleCss = $this->fixtures->dataFile('sample.css');
34
-				$outputCss = 'minifiedSample.css';
33
+                $sampleCss = $this->fixtures->dataFile('sample.css');
34
+                $outputCss = 'minifiedSample.css';
35 35
 
36
-				$initialFileSize = filesize($sampleCss);
36
+                $initialFileSize = filesize($sampleCss);
37 37
 
38
-				$this->taskMinify($sampleCss)
39
-				  ->to('minifiedSample.css')
40
-				  ->run();
38
+                $this->taskMinify($sampleCss)
39
+                    ->to('minifiedSample.css')
40
+                    ->run();
41 41
 
42
-				$this->assertFileExists($outputCss);
43
-				$minifiedFileSize = filesize($outputCss);
44
-				$outputCssContents = file_get_contents($outputCss);
42
+                $this->assertFileExists($outputCss);
43
+                $minifiedFileSize = filesize($outputCss);
44
+                $outputCssContents = file_get_contents($outputCss);
45 45
 
46
-				$this->assertLessThan($initialFileSize, $minifiedFileSize, 'Minified file is smaller than the source file');
47
-				$this->assertGreaterThan(0, $minifiedFileSize, 'Minified file is not empty');
48
-				$this->assertContains('body', $outputCssContents, 'Minified file has some content from the source file');
49
-				$this->assertNotContains('Sample css file', $outputCssContents, 'Minified file does not contain comment from source file');
46
+                $this->assertLessThan($initialFileSize, $minifiedFileSize, 'Minified file is smaller than the source file');
47
+                $this->assertGreaterThan(0, $minifiedFileSize, 'Minified file is not empty');
48
+                $this->assertContains('body', $outputCssContents, 'Minified file has some content from the source file');
49
+                $this->assertNotContains('Sample css file', $outputCssContents, 'Minified file does not contain comment from source file');
50 50
     }
51 51
 
52 52
 }
Please login to merge, or discard this patch.