@@ -32,15 +32,15 @@ |
||
32 | 32 | public const B = 'B'; |
33 | 33 | public const KILO = 1000; |
34 | 34 | public const KIBI = 1024; |
35 | - public const SI = [1 => ['kB', 'kilo', 'kilobyte',], |
|
36 | - 2 => ['MB', 'mega', 'megabyte',], |
|
37 | - 3 => ['GB', 'giga', 'gigabyte',], |
|
38 | - 4 => ['TB', 'tera', 'terabyte',],]; |
|
39 | - public const IEC = [0 => [self::B,], |
|
40 | - 1 => ['k', 'Ki', 'KiB', 'kibi', 'kibibyte',], |
|
41 | - 2 => ['M', 'Mi', 'MiB', 'mebi', 'mebibyte',], |
|
42 | - 3 => ['G', 'Gi', 'GiB', 'gibi', 'gibibyte',], |
|
43 | - 4 => ['T', 'Ti', 'TiB', 'tebi', 'tebibyte',],]; |
|
35 | + public const SI = [1 => ['kB', 'kilo', 'kilobyte', ], |
|
36 | + 2 => ['MB', 'mega', 'megabyte', ], |
|
37 | + 3 => ['GB', 'giga', 'gigabyte', ], |
|
38 | + 4 => ['TB', 'tera', 'terabyte', ], ]; |
|
39 | + public const IEC = [0 => [self::B, ], |
|
40 | + 1 => ['k', 'Ki', 'KiB', 'kibi', 'kibibyte', ], |
|
41 | + 2 => ['M', 'Mi', 'MiB', 'mebi', 'mebibyte', ], |
|
42 | + 3 => ['G', 'Gi', 'GiB', 'gibi', 'gibibyte', ], |
|
43 | + 4 => ['T', 'Ti', 'TiB', 'tebi', 'tebibyte', ], ]; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Converts strings like '512K', '0.5G', '50M' to bytes. |
@@ -141,9 +141,4 @@ |
||
141 | 141 | $errorMessages .= PHP_EOL; |
142 | 142 | |
143 | 143 | if ($this->retryDelay > 0) { |
144 | - sleep($this->retryDelay); |
|
145 | - } |
|
146 | - } |
|
147 | - } |
|
148 | - } |
|
149 | -} |
|
144 | + sleep($this->retryDelay |
|
150 | 145 | \ No newline at end of file |
@@ -141,9 +141,4 @@ |
||
141 | 141 | $errorMessages .= PHP_EOL; |
142 | 142 | |
143 | 143 | if ($this->retryDelay > 0) { |
144 | - sleep($this->retryDelay); |
|
145 | - } |
|
146 | - } |
|
147 | - } |
|
148 | - } |
|
149 | -} |
|
144 | + sleep($this->retryDelay |
|
150 | 145 | \ No newline at end of file |
@@ -141,9 +141,4 @@ |
||
141 | 141 | $errorMessages .= PHP_EOL; |
142 | 142 | |
143 | 143 | if ($this->retryDelay > 0) { |
144 | - sleep($this->retryDelay); |
|
145 | - } |
|
146 | - } |
|
147 | - } |
|
148 | - } |
|
149 | -} |
|
144 | + sleep($this->retryDelay |
|
150 | 145 | \ No newline at end of file |
@@ -141,9 +141,4 @@ |
||
141 | 141 | $errorMessages .= PHP_EOL; |
142 | 142 | |
143 | 143 | if ($this->retryDelay > 0) { |
144 | - sleep($this->retryDelay); |
|
145 | - } |
|
146 | - } |
|
147 | - } |
|
148 | - } |
|
149 | -} |
|
144 | + sleep($this->retryDelay |
|
150 | 145 | \ No newline at end of file |
@@ -141,9 +141,4 @@ |
||
141 | 141 | $errorMessages .= PHP_EOL; |
142 | 142 | |
143 | 143 | if ($this->retryDelay > 0) { |
144 | - sleep($this->retryDelay); |
|
145 | - } |
|
146 | - } |
|
147 | - } |
|
148 | - } |
|
149 | -} |
|
144 | + sleep($this->retryDelay |
|
150 | 145 | \ No newline at end of file |
@@ -210,6 +210,4 @@ |
||
210 | 210 | $this->project->setProperty('bar.value', "some value"); |
211 | 211 | $this->project->executeTarget('test'); |
212 | 212 | |
213 | - $this->assertEquals($expected, $this->queries); |
|
214 | - } |
|
215 | -} |
|
213 | + $this->assertEquals($expected, $this->queries |
|
216 | 214 | \ No newline at end of file |
@@ -210,6 +210,4 @@ |
||
210 | 210 | $this->project->setProperty('bar.value', "some value"); |
211 | 211 | $this->project->executeTarget('test'); |
212 | 212 | |
213 | - $this->assertEquals($expected, $this->queries); |
|
214 | - } |
|
215 | -} |
|
213 | + $this->assertEquals($expected, $this->queries |
|
216 | 214 | \ No newline at end of file |
@@ -210,6 +210,4 @@ |
||
210 | 210 | $this->project->setProperty('bar.value', "some value"); |
211 | 211 | $this->project->executeTarget('test'); |
212 | 212 | |
213 | - $this->assertEquals($expected, $this->queries); |
|
214 | - } |
|
215 | -} |
|
213 | + $this->assertEquals($expected, $this->queries |
|
216 | 214 | \ No newline at end of file |
@@ -210,6 +210,4 @@ |
||
210 | 210 | $this->project->setProperty('bar.value', "some value"); |
211 | 211 | $this->project->executeTarget('test'); |
212 | 212 | |
213 | - $this->assertEquals($expected, $this->queries); |
|
214 | - } |
|
215 | -} |
|
213 | + $this->assertEquals($expected, $this->queries |
|
216 | 214 | \ No newline at end of file |
@@ -210,6 +210,4 @@ |
||
210 | 210 | $this->project->setProperty('bar.value', "some value"); |
211 | 211 | $this->project->executeTarget('test'); |
212 | 212 | |
213 | - $this->assertEquals($expected, $this->queries); |
|
214 | - } |
|
215 | -} |
|
213 | + $this->assertEquals($expected, $this->queries |
|
216 | 214 | \ No newline at end of file |
@@ -56,6 +56,4 @@ |
||
56 | 56 | The ' characters around the executable and arguments are not part of the command. |
57 | 57 | CMD; |
58 | 58 | |
59 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
60 | - } |
|
61 | -} |
|
59 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
62 | 60 | \ No newline at end of file |
@@ -56,6 +56,4 @@ |
||
56 | 56 | The ' characters around the executable and arguments are not part of the command. |
57 | 57 | CMD; |
58 | 58 | |
59 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
60 | - } |
|
61 | -} |
|
59 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
62 | 60 | \ No newline at end of file |
@@ -56,6 +56,4 @@ |
||
56 | 56 | The ' characters around the executable and arguments are not part of the command. |
57 | 57 | CMD; |
58 | 58 | |
59 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
60 | - } |
|
61 | -} |
|
59 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
62 | 60 | \ No newline at end of file |
@@ -56,6 +56,4 @@ |
||
56 | 56 | The ' characters around the executable and arguments are not part of the command. |
57 | 57 | CMD; |
58 | 58 | |
59 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
60 | - } |
|
61 | -} |
|
59 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
62 | 60 | \ No newline at end of file |
@@ -56,6 +56,4 @@ |
||
56 | 56 | The ' characters around the executable and arguments are not part of the command. |
57 | 57 | CMD; |
58 | 58 | |
59 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
60 | - } |
|
61 | -} |
|
59 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
62 | 60 | \ No newline at end of file |
@@ -92,6 +92,4 @@ |
||
92 | 92 | The ' characters around the executable and arguments are not part of the command. |
93 | 93 | CMD; |
94 | 94 | |
95 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
96 | - } |
|
97 | -} |
|
95 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
98 | 96 | \ No newline at end of file |
@@ -92,6 +92,4 @@ |
||
92 | 92 | The ' characters around the executable and arguments are not part of the command. |
93 | 93 | CMD; |
94 | 94 | |
95 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
96 | - } |
|
97 | -} |
|
95 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
98 | 96 | \ No newline at end of file |
@@ -92,6 +92,4 @@ |
||
92 | 92 | The ' characters around the executable and arguments are not part of the command. |
93 | 93 | CMD; |
94 | 94 | |
95 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
96 | - } |
|
97 | -} |
|
95 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
98 | 96 | \ No newline at end of file |
@@ -92,6 +92,4 @@ |
||
92 | 92 | The ' characters around the executable and arguments are not part of the command. |
93 | 93 | CMD; |
94 | 94 | |
95 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
96 | - } |
|
97 | -} |
|
95 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
98 | 96 | \ No newline at end of file |
@@ -92,6 +92,4 @@ |
||
92 | 92 | The ' characters around the executable and arguments are not part of the command. |
93 | 93 | CMD; |
94 | 94 | |
95 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
96 | - } |
|
97 | -} |
|
95 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
98 | 96 | \ No newline at end of file |
@@ -65,6 +65,4 @@ |
||
65 | 65 | The ' characters around the executable and arguments are not part of the command. |
66 | 66 | CMD; |
67 | 67 | |
68 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
69 | - } |
|
70 | -} |
|
68 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
71 | 69 | \ No newline at end of file |
@@ -65,6 +65,4 @@ |
||
65 | 65 | The ' characters around the executable and arguments are not part of the command. |
66 | 66 | CMD; |
67 | 67 | |
68 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
69 | - } |
|
70 | -} |
|
68 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
71 | 69 | \ No newline at end of file |
@@ -65,6 +65,4 @@ |
||
65 | 65 | The ' characters around the executable and arguments are not part of the command. |
66 | 66 | CMD; |
67 | 67 | |
68 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
69 | - } |
|
70 | -} |
|
68 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
71 | 69 | \ No newline at end of file |
@@ -65,6 +65,4 @@ |
||
65 | 65 | The ' characters around the executable and arguments are not part of the command. |
66 | 66 | CMD; |
67 | 67 | |
68 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
69 | - } |
|
70 | -} |
|
68 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
71 | 69 | \ No newline at end of file |
@@ -65,6 +65,4 @@ |
||
65 | 65 | The ' characters around the executable and arguments are not part of the command. |
66 | 66 | CMD; |
67 | 67 | |
68 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
69 | - } |
|
70 | -} |
|
68 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
71 | 69 | \ No newline at end of file |
@@ -56,6 +56,4 @@ |
||
56 | 56 | The ' characters around the executable and arguments are not part of the command. |
57 | 57 | CMD; |
58 | 58 | |
59 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
60 | - } |
|
61 | -} |
|
59 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
62 | 60 | \ No newline at end of file |
@@ -56,6 +56,4 @@ |
||
56 | 56 | The ' characters around the executable and arguments are not part of the command. |
57 | 57 | CMD; |
58 | 58 | |
59 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
60 | - } |
|
61 | -} |
|
59 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
62 | 60 | \ No newline at end of file |
@@ -56,6 +56,4 @@ |
||
56 | 56 | The ' characters around the executable and arguments are not part of the command. |
57 | 57 | CMD; |
58 | 58 | |
59 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
60 | - } |
|
61 | -} |
|
59 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
62 | 60 | \ No newline at end of file |
@@ -56,6 +56,4 @@ |
||
56 | 56 | The ' characters around the executable and arguments are not part of the command. |
57 | 57 | CMD; |
58 | 58 | |
59 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
60 | - } |
|
61 | -} |
|
59 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
62 | 60 | \ No newline at end of file |
@@ -56,6 +56,4 @@ |
||
56 | 56 | The ' characters around the executable and arguments are not part of the command. |
57 | 57 | CMD; |
58 | 58 | |
59 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
60 | - } |
|
61 | -} |
|
59 | + $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline |
|
62 | 60 | \ No newline at end of file |
@@ -55,6 +55,4 @@ |
||
55 | 55 | |
56 | 56 | public function testEmpty(): void |
57 | 57 | { |
58 | - $this->expectBuildException('testEmpty', 'No nested XML specified'); |
|
59 | - } |
|
60 | -} |
|
58 | + $this->expectBuildException |
|
61 | 59 | \ No newline at end of file |
@@ -55,6 +55,4 @@ |
||
55 | 55 | |
56 | 56 | public function testEmpty(): void |
57 | 57 | { |
58 | - $this->expectBuildException('testEmpty', 'No nested XML specified'); |
|
59 | - } |
|
60 | -} |
|
58 | + $this->expectBuildException |
|
61 | 59 | \ No newline at end of file |
@@ -55,6 +55,4 @@ |
||
55 | 55 | |
56 | 56 | public function testEmpty(): void |
57 | 57 | { |
58 | - $this->expectBuildException('testEmpty', 'No nested XML specified'); |
|
59 | - } |
|
60 | -} |
|
58 | + $this->expectBuildException |
|
61 | 59 | \ No newline at end of file |
@@ -55,6 +55,4 @@ |
||
55 | 55 | |
56 | 56 | public function testEmpty(): void |
57 | 57 | { |
58 | - $this->expectBuildException('testEmpty', 'No nested XML specified'); |
|
59 | - } |
|
60 | -} |
|
58 | + $this->expectBuildException |
|
61 | 59 | \ No newline at end of file |
@@ -55,6 +55,4 @@ |
||
55 | 55 | |
56 | 56 | public function testEmpty(): void |
57 | 57 | { |
58 | - $this->expectBuildException('testEmpty', 'No nested XML specified'); |
|
59 | - } |
|
60 | -} |
|
58 | + $this->expectBuildException |
|
61 | 59 | \ No newline at end of file |
@@ -49,6 +49,4 @@ |
||
49 | 49 | |
50 | 50 | $result = file_get_contents($resultFile->getAbsolutePath()); |
51 | 51 | |
52 | - $this->assertEquals($expected, $result, "Files don't match!"); |
|
53 | - } |
|
54 | -} |
|
52 | + $this->assertEquals($expected, $result |
|
55 | 53 | \ No newline at end of file |
@@ -49,6 +49,4 @@ |
||
49 | 49 | |
50 | 50 | $result = file_get_contents($resultFile->getAbsolutePath()); |
51 | 51 | |
52 | - $this->assertEquals($expected, $result, "Files don't match!"); |
|
53 | - } |
|
54 | -} |
|
52 | + $this->assertEquals($expected, $result |
|
55 | 53 | \ No newline at end of file |
@@ -49,6 +49,4 @@ |
||
49 | 49 | |
50 | 50 | $result = file_get_contents($resultFile->getAbsolutePath()); |
51 | 51 | |
52 | - $this->assertEquals($expected, $result, "Files don't match!"); |
|
53 | - } |
|
54 | -} |
|
52 | + $this->assertEquals($expected, $result |
|
55 | 53 | \ No newline at end of file |
@@ -49,6 +49,4 @@ |
||
49 | 49 | |
50 | 50 | $result = file_get_contents($resultFile->getAbsolutePath()); |
51 | 51 | |
52 | - $this->assertEquals($expected, $result, "Files don't match!"); |
|
53 | - } |
|
54 | -} |
|
52 | + $this->assertEquals($expected, $result |
|
55 | 53 | \ No newline at end of file |
@@ -49,6 +49,4 @@ |
||
49 | 49 | |
50 | 50 | $result = file_get_contents($resultFile->getAbsolutePath()); |
51 | 51 | |
52 | - $this->assertEquals($expected, $result, "Files don't match!"); |
|
53 | - } |
|
54 | -} |
|
52 | + $this->assertEquals($expected, $result |
|
55 | 53 | \ No newline at end of file |