@@ -41,7 +41,7 @@ |
||
41 | 41 | public function testPackExtract($archiveType) |
42 | 42 | { |
43 | 43 | if ((version_compare(PHP_VERSION, '7.4.0') >= 0) && (getenv('TRAVIS'))) { |
44 | - $this->markTestSkipped('Zip libraries apparently not available on Travis CI with PHP 7.4 image.'); |
|
44 | + $this->markTestSkipped('Zip libraries apparently not available on Travis CI with PHP 7.4 image.'); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | // Archive directory and then extract it again with Archive and Extract tasks |
@@ -27,10 +27,10 @@ discard block |
||
27 | 27 | { |
28 | 28 | // write lines with WriteToFile task |
29 | 29 | $result = $this->taskWriteToFile('blogpost.md') |
30 | - ->line('****') |
|
31 | - ->line('hello world') |
|
32 | - ->line('****') |
|
33 | - ->run(); |
|
30 | + ->line('****') |
|
31 | + ->line('hello world') |
|
32 | + ->line('****') |
|
33 | + ->run(); |
|
34 | 34 | $this->assertTrue($result->wasSuccessful(), $result->getMessage()); |
35 | 35 | $this->assertFileExists('blogpost.md'); |
36 | 36 | $contents = file_get_contents('blogpost.md'); |
@@ -46,9 +46,9 @@ discard block |
||
46 | 46 | public function appendToFile() |
47 | 47 | { |
48 | 48 | $result = $this->taskWriteToFile('a.txt') |
49 | - ->append() |
|
50 | - ->line('hello world') |
|
51 | - ->run(); |
|
49 | + ->append() |
|
50 | + ->line('hello world') |
|
51 | + ->run(); |
|
52 | 52 | $this->assertTrue($result->wasSuccessful(), $result->getMessage()); |
53 | 53 | $this->assertFileExists('a.txt'); |
54 | 54 | $contents = file_get_contents('a.txt'); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | public function testWouldChange() |
63 | 63 | { |
64 | 64 | $writeTask = $this->taskWriteToFile('a.txt') |
65 | - ->append(); |
|
65 | + ->append(); |
|
66 | 66 | $this->assertEquals(false, $writeTask->wouldChange(), "No changes to test file."); |
67 | 67 | $writeTask->line('hello world'); |
68 | 68 | $this->assertEquals(true, $writeTask->wouldChange(), "Test file would change."); |
@@ -90,15 +90,15 @@ discard block |
||
90 | 90 | { |
91 | 91 | // append lines with WriteToFile task, but only if pattern does not match |
92 | 92 | $result = $this->taskWriteToFile('blogpost.md') |
93 | - ->line('****') |
|
94 | - ->line('hello world') |
|
95 | - ->line('****') |
|
96 | - ->appendUnlessMatches('/hello/', 'Should not add this') |
|
97 | - ->appendUnlessMatches('/goodbye/', 'Should add this') |
|
98 | - ->appendIfMatches('/hello/', ' and should also add this') |
|
99 | - ->appendIfMatches('/goodbye/', ' but should not add this') |
|
100 | - ->appendIfMatches('/should/', '!') |
|
101 | - ->run(); |
|
93 | + ->line('****') |
|
94 | + ->line('hello world') |
|
95 | + ->line('****') |
|
96 | + ->appendUnlessMatches('/hello/', 'Should not add this') |
|
97 | + ->appendUnlessMatches('/goodbye/', 'Should add this') |
|
98 | + ->appendIfMatches('/hello/', ' and should also add this') |
|
99 | + ->appendIfMatches('/goodbye/', ' but should not add this') |
|
100 | + ->appendIfMatches('/should/', '!') |
|
101 | + ->run(); |
|
102 | 102 | $this->assertTrue($result->wasSuccessful(), $result->getMessage()); |
103 | 103 | $this->assertFileExists('blogpost.md'); |
104 | 104 | $contents = file_get_contents('blogpost.md'); |
@@ -20,8 +20,8 @@ |
||
20 | 20 | $result = $this->taskGenTask('Symfony\Component\Filesystem\Filesystem', 'FilesystemStack')->run(); |
21 | 21 | $this->assertTrue($result->wasSuccessful(), $result->getMessage()); |
22 | 22 | $this->assertContains( |
23 | - 'protected function _chgrp($files, $group, $recursive = false)', |
|
24 | - $result->getMessage()); |
|
23 | + 'protected function _chgrp($files, $group, $recursive = false)', |
|
24 | + $result->getMessage()); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | } |
@@ -25,29 +25,29 @@ |
||
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 | - $result = $this->taskMinify($sampleCss) |
|
39 | - ->to('minifiedSample.css') |
|
40 | - ->run(); |
|
38 | + $result = $this->taskMinify($sampleCss) |
|
39 | + ->to('minifiedSample.css') |
|
40 | + ->run(); |
|
41 | 41 | $this->assertTrue($result->wasSuccessful(), $result->getMessage()); |
42 | 42 | |
43 | - $this->assertFileExists($outputCss); |
|
44 | - $minifiedFileSize = filesize($outputCss); |
|
45 | - $outputCssContents = file_get_contents($outputCss); |
|
43 | + $this->assertFileExists($outputCss); |
|
44 | + $minifiedFileSize = filesize($outputCss); |
|
45 | + $outputCssContents = file_get_contents($outputCss); |
|
46 | 46 | |
47 | - $this->assertLessThan($initialFileSize, $minifiedFileSize, 'Minified file is smaller than the source file'); |
|
48 | - $this->assertGreaterThan(0, $minifiedFileSize, 'Minified file is not empty'); |
|
49 | - $this->assertContains('body', $outputCssContents, 'Minified file has some content from the source file'); |
|
50 | - $this->assertNotContains('Sample css file', $outputCssContents, 'Minified file does not contain comment from source file'); |
|
47 | + $this->assertLessThan($initialFileSize, $minifiedFileSize, 'Minified file is smaller than the source file'); |
|
48 | + $this->assertGreaterThan(0, $minifiedFileSize, 'Minified file is not empty'); |
|
49 | + $this->assertContains('body', $outputCssContents, 'Minified file has some content from the source file'); |
|
50 | + $this->assertNotContains('Sample css file', $outputCssContents, 'Minified file does not contain comment from source file'); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | } |
@@ -59,10 +59,10 @@ discard block |
||
59 | 59 | public function convertPathToNamespaceData() |
60 | 60 | { |
61 | 61 | return [ |
62 | - ['/A/B/C', 'A\B\C'], |
|
63 | - ['A/B/C', 'A\B\C'], |
|
64 | - ['A/B/C', 'A\B\C'], |
|
65 | - ['A/B/C.php', 'A\B\C'], |
|
62 | + ['/A/B/C', 'A\B\C'], |
|
63 | + ['A/B/C', 'A\B\C'], |
|
64 | + ['A/B/C', 'A\B\C'], |
|
65 | + ['A/B/C.php', 'A\B\C'], |
|
66 | 66 | ]; |
67 | 67 | } |
68 | 68 | |
@@ -83,9 +83,9 @@ discard block |
||
83 | 83 | public function convertNamespaceToPathData() |
84 | 84 | { |
85 | 85 | return [ |
86 | - ['A\B\C', '/A/B/C'], |
|
87 | - ['\A\B\C\\', '/A/B/C'], |
|
88 | - ['A\B\C\\', '/A/B/C'], |
|
86 | + ['A\B\C', '/A/B/C'], |
|
87 | + ['\A\B\C\\', '/A/B/C'], |
|
88 | + ['A\B\C\\', '/A/B/C'], |
|
89 | 89 | ]; |
90 | 90 | } |
91 | 91 |