@@ -214,7 +214,7 @@ |
||
214 | 214 | while (false !== strpos($sb, '${')) { |
215 | 215 | $sb = preg_replace_callback( |
216 | 216 | '/\$\{([^\$}]+)\}/', |
217 | - function ($matches) use ($keys) { |
|
217 | + function($matches) use ($keys) { |
|
218 | 218 | $propertyName = $matches[1]; |
219 | 219 | |
220 | 220 | $replacement = null; |
@@ -342,7 +342,7 @@ |
||
342 | 342 | public static function formatTime(float $seconds): string |
343 | 343 | { |
344 | 344 | /** @var float|int $number */ |
345 | - $getPlural = function ($number): string { |
|
345 | + $getPlural = function($number): string { |
|
346 | 346 | return 1 == $number ? '' : 's'; |
347 | 347 | }; |
348 | 348 | $chunks = []; |
@@ -57,19 +57,3 @@ |
||
57 | 57 | |
58 | 58 | $this->builder->build($task); |
59 | 59 | $expectedCommand = <<< 'CMD' |
60 | - Executing 'phpstan' with arguments: |
|
61 | - 'analyse' |
|
62 | - '--configuration=anyConfiguration' |
|
63 | - '--level=anyLevel' |
|
64 | - '--no-progress' |
|
65 | - '--debug' |
|
66 | - '--autoload-file=anyAutoloadFile' |
|
67 | - '--error-format=anyErrorFormat' |
|
68 | - '--memory-limit=anyMemoryLimit' |
|
69 | - 'path1 path2' |
|
70 | - The ' characters around the executable and arguments are not part of the command. |
|
71 | - CMD; |
|
72 | - |
|
73 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
74 | - } |
|
75 | -} |
@@ -57,19 +57,3 @@ |
||
57 | 57 | |
58 | 58 | $this->builder->build($task); |
59 | 59 | $expectedCommand = <<< 'CMD' |
60 | - Executing 'phpstan' with arguments: |
|
61 | - 'analyse' |
|
62 | - '--configuration=anyConfiguration' |
|
63 | - '--level=anyLevel' |
|
64 | - '--no-progress' |
|
65 | - '--debug' |
|
66 | - '--autoload-file=anyAutoloadFile' |
|
67 | - '--error-format=anyErrorFormat' |
|
68 | - '--memory-limit=anyMemoryLimit' |
|
69 | - 'path1 path2' |
|
70 | - The ' characters around the executable and arguments are not part of the command. |
|
71 | - CMD; |
|
72 | - |
|
73 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
74 | - } |
|
75 | -} |
@@ -57,19 +57,3 @@ |
||
57 | 57 | |
58 | 58 | $this->builder->build($task); |
59 | 59 | $expectedCommand = <<< 'CMD' |
60 | - Executing 'phpstan' with arguments: |
|
61 | - 'analyse' |
|
62 | - '--configuration=anyConfiguration' |
|
63 | - '--level=anyLevel' |
|
64 | - '--no-progress' |
|
65 | - '--debug' |
|
66 | - '--autoload-file=anyAutoloadFile' |
|
67 | - '--error-format=anyErrorFormat' |
|
68 | - '--memory-limit=anyMemoryLimit' |
|
69 | - 'path1 path2' |
|
70 | - The ' characters around the executable and arguments are not part of the command. |
|
71 | - CMD; |
|
72 | - |
|
73 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
74 | - } |
|
75 | -} |
@@ -57,19 +57,3 @@ |
||
57 | 57 | |
58 | 58 | $this->builder->build($task); |
59 | 59 | $expectedCommand = <<< 'CMD' |
60 | - Executing 'phpstan' with arguments: |
|
61 | - 'analyse' |
|
62 | - '--configuration=anyConfiguration' |
|
63 | - '--level=anyLevel' |
|
64 | - '--no-progress' |
|
65 | - '--debug' |
|
66 | - '--autoload-file=anyAutoloadFile' |
|
67 | - '--error-format=anyErrorFormat' |
|
68 | - '--memory-limit=anyMemoryLimit' |
|
69 | - 'path1 path2' |
|
70 | - The ' characters around the executable and arguments are not part of the command. |
|
71 | - CMD; |
|
72 | - |
|
73 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
74 | - } |
|
75 | -} |
@@ -57,19 +57,3 @@ |
||
57 | 57 | |
58 | 58 | $this->builder->build($task); |
59 | 59 | $expectedCommand = <<< 'CMD' |
60 | - Executing 'phpstan' with arguments: |
|
61 | - 'analyse' |
|
62 | - '--configuration=anyConfiguration' |
|
63 | - '--level=anyLevel' |
|
64 | - '--no-progress' |
|
65 | - '--debug' |
|
66 | - '--autoload-file=anyAutoloadFile' |
|
67 | - '--error-format=anyErrorFormat' |
|
68 | - '--memory-limit=anyMemoryLimit' |
|
69 | - 'path1 path2' |
|
70 | - The ' characters around the executable and arguments are not part of the command. |
|
71 | - CMD; |
|
72 | - |
|
73 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
74 | - } |
|
75 | -} |
@@ -49,53 +49,3 @@ |
||
49 | 49 | $this->builder->build($task); |
50 | 50 | |
51 | 51 | $cmd = <<<'CMD' |
52 | - Executing 'anyExecutable' with arguments: |
|
53 | - 'anyCommand' |
|
54 | - The ' characters around the executable and arguments are not part of the command. |
|
55 | - CMD; |
|
56 | - |
|
57 | - $this->assertEquals($cmd, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
58 | - } |
|
59 | - |
|
60 | - public function testItFailsWhenExecutableNotSet(): void |
|
61 | - { |
|
62 | - $task = new PHPStanTask(); |
|
63 | - $task->setExecutable(''); |
|
64 | - |
|
65 | - $this->expectException(BuildException::class); |
|
66 | - |
|
67 | - $this->builder->build($task); |
|
68 | - } |
|
69 | - |
|
70 | - public function testItHandlesCommonOptions(): void |
|
71 | - { |
|
72 | - $task = new PHPStanTask(); |
|
73 | - $task->setExecutable('anyExecutable'); |
|
74 | - $task->setCommand('anyCommand'); |
|
75 | - |
|
76 | - $task->setHelp(true); |
|
77 | - $task->setQuiet(true); |
|
78 | - $task->setVersion(true); |
|
79 | - $task->setANSI(true); |
|
80 | - $task->setNoANSI(true); |
|
81 | - $task->setNoInteraction(true); |
|
82 | - $task->setVerbose(true); |
|
83 | - |
|
84 | - $this->builder->build($task); |
|
85 | - |
|
86 | - $expectedCommand = <<<'CMD' |
|
87 | - Executing 'anyExecutable' with arguments: |
|
88 | - 'anyCommand' |
|
89 | - '--help' |
|
90 | - '--quiet' |
|
91 | - '--version' |
|
92 | - '--ansi' |
|
93 | - '--no-ansi' |
|
94 | - '--no-interaction' |
|
95 | - '--verbose' |
|
96 | - The ' characters around the executable and arguments are not part of the command. |
|
97 | - CMD; |
|
98 | - |
|
99 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
100 | - } |
|
101 | -} |
@@ -49,53 +49,3 @@ |
||
49 | 49 | $this->builder->build($task); |
50 | 50 | |
51 | 51 | $cmd = <<<'CMD' |
52 | - Executing 'anyExecutable' with arguments: |
|
53 | - 'anyCommand' |
|
54 | - The ' characters around the executable and arguments are not part of the command. |
|
55 | - CMD; |
|
56 | - |
|
57 | - $this->assertEquals($cmd, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
58 | - } |
|
59 | - |
|
60 | - public function testItFailsWhenExecutableNotSet(): void |
|
61 | - { |
|
62 | - $task = new PHPStanTask(); |
|
63 | - $task->setExecutable(''); |
|
64 | - |
|
65 | - $this->expectException(BuildException::class); |
|
66 | - |
|
67 | - $this->builder->build($task); |
|
68 | - } |
|
69 | - |
|
70 | - public function testItHandlesCommonOptions(): void |
|
71 | - { |
|
72 | - $task = new PHPStanTask(); |
|
73 | - $task->setExecutable('anyExecutable'); |
|
74 | - $task->setCommand('anyCommand'); |
|
75 | - |
|
76 | - $task->setHelp(true); |
|
77 | - $task->setQuiet(true); |
|
78 | - $task->setVersion(true); |
|
79 | - $task->setANSI(true); |
|
80 | - $task->setNoANSI(true); |
|
81 | - $task->setNoInteraction(true); |
|
82 | - $task->setVerbose(true); |
|
83 | - |
|
84 | - $this->builder->build($task); |
|
85 | - |
|
86 | - $expectedCommand = <<<'CMD' |
|
87 | - Executing 'anyExecutable' with arguments: |
|
88 | - 'anyCommand' |
|
89 | - '--help' |
|
90 | - '--quiet' |
|
91 | - '--version' |
|
92 | - '--ansi' |
|
93 | - '--no-ansi' |
|
94 | - '--no-interaction' |
|
95 | - '--verbose' |
|
96 | - The ' characters around the executable and arguments are not part of the command. |
|
97 | - CMD; |
|
98 | - |
|
99 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
100 | - } |
|
101 | -} |
@@ -49,53 +49,3 @@ |
||
49 | 49 | $this->builder->build($task); |
50 | 50 | |
51 | 51 | $cmd = <<<'CMD' |
52 | - Executing 'anyExecutable' with arguments: |
|
53 | - 'anyCommand' |
|
54 | - The ' characters around the executable and arguments are not part of the command. |
|
55 | - CMD; |
|
56 | - |
|
57 | - $this->assertEquals($cmd, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
58 | - } |
|
59 | - |
|
60 | - public function testItFailsWhenExecutableNotSet(): void |
|
61 | - { |
|
62 | - $task = new PHPStanTask(); |
|
63 | - $task->setExecutable(''); |
|
64 | - |
|
65 | - $this->expectException(BuildException::class); |
|
66 | - |
|
67 | - $this->builder->build($task); |
|
68 | - } |
|
69 | - |
|
70 | - public function testItHandlesCommonOptions(): void |
|
71 | - { |
|
72 | - $task = new PHPStanTask(); |
|
73 | - $task->setExecutable('anyExecutable'); |
|
74 | - $task->setCommand('anyCommand'); |
|
75 | - |
|
76 | - $task->setHelp(true); |
|
77 | - $task->setQuiet(true); |
|
78 | - $task->setVersion(true); |
|
79 | - $task->setANSI(true); |
|
80 | - $task->setNoANSI(true); |
|
81 | - $task->setNoInteraction(true); |
|
82 | - $task->setVerbose(true); |
|
83 | - |
|
84 | - $this->builder->build($task); |
|
85 | - |
|
86 | - $expectedCommand = <<<'CMD' |
|
87 | - Executing 'anyExecutable' with arguments: |
|
88 | - 'anyCommand' |
|
89 | - '--help' |
|
90 | - '--quiet' |
|
91 | - '--version' |
|
92 | - '--ansi' |
|
93 | - '--no-ansi' |
|
94 | - '--no-interaction' |
|
95 | - '--verbose' |
|
96 | - The ' characters around the executable and arguments are not part of the command. |
|
97 | - CMD; |
|
98 | - |
|
99 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
100 | - } |
|
101 | -} |
@@ -49,53 +49,3 @@ |
||
49 | 49 | $this->builder->build($task); |
50 | 50 | |
51 | 51 | $cmd = <<<'CMD' |
52 | - Executing 'anyExecutable' with arguments: |
|
53 | - 'anyCommand' |
|
54 | - The ' characters around the executable and arguments are not part of the command. |
|
55 | - CMD; |
|
56 | - |
|
57 | - $this->assertEquals($cmd, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
58 | - } |
|
59 | - |
|
60 | - public function testItFailsWhenExecutableNotSet(): void |
|
61 | - { |
|
62 | - $task = new PHPStanTask(); |
|
63 | - $task->setExecutable(''); |
|
64 | - |
|
65 | - $this->expectException(BuildException::class); |
|
66 | - |
|
67 | - $this->builder->build($task); |
|
68 | - } |
|
69 | - |
|
70 | - public function testItHandlesCommonOptions(): void |
|
71 | - { |
|
72 | - $task = new PHPStanTask(); |
|
73 | - $task->setExecutable('anyExecutable'); |
|
74 | - $task->setCommand('anyCommand'); |
|
75 | - |
|
76 | - $task->setHelp(true); |
|
77 | - $task->setQuiet(true); |
|
78 | - $task->setVersion(true); |
|
79 | - $task->setANSI(true); |
|
80 | - $task->setNoANSI(true); |
|
81 | - $task->setNoInteraction(true); |
|
82 | - $task->setVerbose(true); |
|
83 | - |
|
84 | - $this->builder->build($task); |
|
85 | - |
|
86 | - $expectedCommand = <<<'CMD' |
|
87 | - Executing 'anyExecutable' with arguments: |
|
88 | - 'anyCommand' |
|
89 | - '--help' |
|
90 | - '--quiet' |
|
91 | - '--version' |
|
92 | - '--ansi' |
|
93 | - '--no-ansi' |
|
94 | - '--no-interaction' |
|
95 | - '--verbose' |
|
96 | - The ' characters around the executable and arguments are not part of the command. |
|
97 | - CMD; |
|
98 | - |
|
99 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
100 | - } |
|
101 | -} |
@@ -49,53 +49,3 @@ |
||
49 | 49 | $this->builder->build($task); |
50 | 50 | |
51 | 51 | $cmd = <<<'CMD' |
52 | - Executing 'anyExecutable' with arguments: |
|
53 | - 'anyCommand' |
|
54 | - The ' characters around the executable and arguments are not part of the command. |
|
55 | - CMD; |
|
56 | - |
|
57 | - $this->assertEquals($cmd, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
58 | - } |
|
59 | - |
|
60 | - public function testItFailsWhenExecutableNotSet(): void |
|
61 | - { |
|
62 | - $task = new PHPStanTask(); |
|
63 | - $task->setExecutable(''); |
|
64 | - |
|
65 | - $this->expectException(BuildException::class); |
|
66 | - |
|
67 | - $this->builder->build($task); |
|
68 | - } |
|
69 | - |
|
70 | - public function testItHandlesCommonOptions(): void |
|
71 | - { |
|
72 | - $task = new PHPStanTask(); |
|
73 | - $task->setExecutable('anyExecutable'); |
|
74 | - $task->setCommand('anyCommand'); |
|
75 | - |
|
76 | - $task->setHelp(true); |
|
77 | - $task->setQuiet(true); |
|
78 | - $task->setVersion(true); |
|
79 | - $task->setANSI(true); |
|
80 | - $task->setNoANSI(true); |
|
81 | - $task->setNoInteraction(true); |
|
82 | - $task->setVerbose(true); |
|
83 | - |
|
84 | - $this->builder->build($task); |
|
85 | - |
|
86 | - $expectedCommand = <<<'CMD' |
|
87 | - Executing 'anyExecutable' with arguments: |
|
88 | - 'anyCommand' |
|
89 | - '--help' |
|
90 | - '--quiet' |
|
91 | - '--version' |
|
92 | - '--ansi' |
|
93 | - '--no-ansi' |
|
94 | - '--no-interaction' |
|
95 | - '--verbose' |
|
96 | - The ' characters around the executable and arguments are not part of the command. |
|
97 | - CMD; |
|
98 | - |
|
99 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
100 | - } |
|
101 | -} |
@@ -53,14 +53,3 @@ |
||
53 | 53 | $this->builder->build($task); |
54 | 54 | |
55 | 55 | $expectedCommand = <<<'CMD' |
56 | - Executing 'phpstan' with arguments: |
|
57 | - 'list' |
|
58 | - '--format=anyFormat' |
|
59 | - '--raw' |
|
60 | - 'anyNamespace' |
|
61 | - The ' characters around the executable and arguments are not part of the command. |
|
62 | - CMD; |
|
63 | - |
|
64 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
65 | - } |
|
66 | -} |
@@ -53,14 +53,3 @@ |
||
53 | 53 | $this->builder->build($task); |
54 | 54 | |
55 | 55 | $expectedCommand = <<<'CMD' |
56 | - Executing 'phpstan' with arguments: |
|
57 | - 'list' |
|
58 | - '--format=anyFormat' |
|
59 | - '--raw' |
|
60 | - 'anyNamespace' |
|
61 | - The ' characters around the executable and arguments are not part of the command. |
|
62 | - CMD; |
|
63 | - |
|
64 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
65 | - } |
|
66 | -} |
@@ -53,14 +53,3 @@ |
||
53 | 53 | $this->builder->build($task); |
54 | 54 | |
55 | 55 | $expectedCommand = <<<'CMD' |
56 | - Executing 'phpstan' with arguments: |
|
57 | - 'list' |
|
58 | - '--format=anyFormat' |
|
59 | - '--raw' |
|
60 | - 'anyNamespace' |
|
61 | - The ' characters around the executable and arguments are not part of the command. |
|
62 | - CMD; |
|
63 | - |
|
64 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
65 | - } |
|
66 | -} |
@@ -53,14 +53,3 @@ |
||
53 | 53 | $this->builder->build($task); |
54 | 54 | |
55 | 55 | $expectedCommand = <<<'CMD' |
56 | - Executing 'phpstan' with arguments: |
|
57 | - 'list' |
|
58 | - '--format=anyFormat' |
|
59 | - '--raw' |
|
60 | - 'anyNamespace' |
|
61 | - The ' characters around the executable and arguments are not part of the command. |
|
62 | - CMD; |
|
63 | - |
|
64 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
65 | - } |
|
66 | -} |
@@ -53,14 +53,3 @@ |
||
53 | 53 | $this->builder->build($task); |
54 | 54 | |
55 | 55 | $expectedCommand = <<<'CMD' |
56 | - Executing 'phpstan' with arguments: |
|
57 | - 'list' |
|
58 | - '--format=anyFormat' |
|
59 | - '--raw' |
|
60 | - 'anyNamespace' |
|
61 | - The ' characters around the executable and arguments are not part of the command. |
|
62 | - CMD; |
|
63 | - |
|
64 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
65 | - } |
|
66 | -} |
@@ -53,14 +53,3 @@ |
||
53 | 53 | $this->builder->build($task); |
54 | 54 | |
55 | 55 | $expectedCommand = <<<'CMD' |
56 | - Executing 'phpstan' with arguments: |
|
57 | - 'help' |
|
58 | - '--format=anyFormat' |
|
59 | - '--raw' |
|
60 | - 'anyCommand' |
|
61 | - The ' characters around the executable and arguments are not part of the command. |
|
62 | - CMD; |
|
63 | - |
|
64 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
65 | - } |
|
66 | -} |
@@ -53,14 +53,3 @@ |
||
53 | 53 | $this->builder->build($task); |
54 | 54 | |
55 | 55 | $expectedCommand = <<<'CMD' |
56 | - Executing 'phpstan' with arguments: |
|
57 | - 'help' |
|
58 | - '--format=anyFormat' |
|
59 | - '--raw' |
|
60 | - 'anyCommand' |
|
61 | - The ' characters around the executable and arguments are not part of the command. |
|
62 | - CMD; |
|
63 | - |
|
64 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
65 | - } |
|
66 | -} |
@@ -53,14 +53,3 @@ |
||
53 | 53 | $this->builder->build($task); |
54 | 54 | |
55 | 55 | $expectedCommand = <<<'CMD' |
56 | - Executing 'phpstan' with arguments: |
|
57 | - 'help' |
|
58 | - '--format=anyFormat' |
|
59 | - '--raw' |
|
60 | - 'anyCommand' |
|
61 | - The ' characters around the executable and arguments are not part of the command. |
|
62 | - CMD; |
|
63 | - |
|
64 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
65 | - } |
|
66 | -} |
@@ -53,14 +53,3 @@ |
||
53 | 53 | $this->builder->build($task); |
54 | 54 | |
55 | 55 | $expectedCommand = <<<'CMD' |
56 | - Executing 'phpstan' with arguments: |
|
57 | - 'help' |
|
58 | - '--format=anyFormat' |
|
59 | - '--raw' |
|
60 | - 'anyCommand' |
|
61 | - The ' characters around the executable and arguments are not part of the command. |
|
62 | - CMD; |
|
63 | - |
|
64 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
65 | - } |
|
66 | -} |
@@ -53,14 +53,3 @@ |
||
53 | 53 | $this->builder->build($task); |
54 | 54 | |
55 | 55 | $expectedCommand = <<<'CMD' |
56 | - Executing 'phpstan' with arguments: |
|
57 | - 'help' |
|
58 | - '--format=anyFormat' |
|
59 | - '--raw' |
|
60 | - 'anyCommand' |
|
61 | - The ' characters around the executable and arguments are not part of the command. |
|
62 | - CMD; |
|
63 | - |
|
64 | - $this->assertEquals($expectedCommand, str_replace("\r", '', $task->getCommandline()->describeCommand())); |
|
65 | - } |
|
66 | -} |
@@ -50,15 +50,3 @@ |
||
50 | 50 | $this->assertStringEqualsFile( |
51 | 51 | $this->getProject()->getProperty('file'), |
52 | 52 | <<< 'XML' |
53 | - <project name="failure" default="" basedir="."> |
|
54 | - <fail message="foo=bar"/> |
|
55 | - </project> |
|
56 | - XML |
|
57 | - ); |
|
58 | - } |
|
59 | - |
|
60 | - public function testEmpty(): void |
|
61 | - { |
|
62 | - $this->expectBuildException('testEmpty', 'No nested XML specified'); |
|
63 | - } |
|
64 | -} |
@@ -50,15 +50,3 @@ |
||
50 | 50 | $this->assertStringEqualsFile( |
51 | 51 | $this->getProject()->getProperty('file'), |
52 | 52 | <<< 'XML' |
53 | - <project name="failure" default="" basedir="."> |
|
54 | - <fail message="foo=bar"/> |
|
55 | - </project> |
|
56 | - XML |
|
57 | - ); |
|
58 | - } |
|
59 | - |
|
60 | - public function testEmpty(): void |
|
61 | - { |
|
62 | - $this->expectBuildException('testEmpty', 'No nested XML specified'); |
|
63 | - } |
|
64 | -} |
@@ -50,15 +50,3 @@ |
||
50 | 50 | $this->assertStringEqualsFile( |
51 | 51 | $this->getProject()->getProperty('file'), |
52 | 52 | <<< 'XML' |
53 | - <project name="failure" default="" basedir="."> |
|
54 | - <fail message="foo=bar"/> |
|
55 | - </project> |
|
56 | - XML |
|
57 | - ); |
|
58 | - } |
|
59 | - |
|
60 | - public function testEmpty(): void |
|
61 | - { |
|
62 | - $this->expectBuildException('testEmpty', 'No nested XML specified'); |
|
63 | - } |
|
64 | -} |
@@ -50,15 +50,3 @@ |
||
50 | 50 | $this->assertStringEqualsFile( |
51 | 51 | $this->getProject()->getProperty('file'), |
52 | 52 | <<< 'XML' |
53 | - <project name="failure" default="" basedir="."> |
|
54 | - <fail message="foo=bar"/> |
|
55 | - </project> |
|
56 | - XML |
|
57 | - ); |
|
58 | - } |
|
59 | - |
|
60 | - public function testEmpty(): void |
|
61 | - { |
|
62 | - $this->expectBuildException('testEmpty', 'No nested XML specified'); |
|
63 | - } |
|
64 | -} |
@@ -50,15 +50,3 @@ |
||
50 | 50 | $this->assertStringEqualsFile( |
51 | 51 | $this->getProject()->getProperty('file'), |
52 | 52 | <<< 'XML' |
53 | - <project name="failure" default="" basedir="."> |
|
54 | - <fail message="foo=bar"/> |
|
55 | - </project> |
|
56 | - XML |
|
57 | - ); |
|
58 | - } |
|
59 | - |
|
60 | - public function testEmpty(): void |
|
61 | - { |
|
62 | - $this->expectBuildException('testEmpty', 'No nested XML specified'); |
|
63 | - } |
|
64 | -} |
@@ -47,12 +47,3 @@ |
||
47 | 47 | $resultFile = $this->getProject()->resolveFile('result/stripwhitespace.test'); |
48 | 48 | |
49 | 49 | $expected = <<<'EXPECTED' |
50 | - <?php |
|
51 | - class { public function __construct() { return ''; } } |
|
52 | - EXPECTED; |
|
53 | - |
|
54 | - $result = file_get_contents($resultFile->getAbsolutePath()); |
|
55 | - |
|
56 | - $this->assertEquals($expected, $result, "Files don't match!"); |
|
57 | - } |
|
58 | -} |
@@ -47,12 +47,3 @@ |
||
47 | 47 | $resultFile = $this->getProject()->resolveFile('result/stripwhitespace.test'); |
48 | 48 | |
49 | 49 | $expected = <<<'EXPECTED' |
50 | - <?php |
|
51 | - class { public function __construct() { return ''; } } |
|
52 | - EXPECTED; |
|
53 | - |
|
54 | - $result = file_get_contents($resultFile->getAbsolutePath()); |
|
55 | - |
|
56 | - $this->assertEquals($expected, $result, "Files don't match!"); |
|
57 | - } |
|
58 | -} |
@@ -47,12 +47,3 @@ |
||
47 | 47 | $resultFile = $this->getProject()->resolveFile('result/stripwhitespace.test'); |
48 | 48 | |
49 | 49 | $expected = <<<'EXPECTED' |
50 | - <?php |
|
51 | - class { public function __construct() { return ''; } } |
|
52 | - EXPECTED; |
|
53 | - |
|
54 | - $result = file_get_contents($resultFile->getAbsolutePath()); |
|
55 | - |
|
56 | - $this->assertEquals($expected, $result, "Files don't match!"); |
|
57 | - } |
|
58 | -} |
@@ -47,12 +47,3 @@ |
||
47 | 47 | $resultFile = $this->getProject()->resolveFile('result/stripwhitespace.test'); |
48 | 48 | |
49 | 49 | $expected = <<<'EXPECTED' |
50 | - <?php |
|
51 | - class { public function __construct() { return ''; } } |
|
52 | - EXPECTED; |
|
53 | - |
|
54 | - $result = file_get_contents($resultFile->getAbsolutePath()); |
|
55 | - |
|
56 | - $this->assertEquals($expected, $result, "Files don't match!"); |
|
57 | - } |
|
58 | -} |
@@ -47,12 +47,3 @@ |
||
47 | 47 | $resultFile = $this->getProject()->resolveFile('result/stripwhitespace.test'); |
48 | 48 | |
49 | 49 | $expected = <<<'EXPECTED' |
50 | - <?php |
|
51 | - class { public function __construct() { return ''; } } |
|
52 | - EXPECTED; |
|
53 | - |
|
54 | - $result = file_get_contents($resultFile->getAbsolutePath()); |
|
55 | - |
|
56 | - $this->assertEquals($expected, $result, "Files don't match!"); |
|
57 | - } |
|
58 | -} |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | $fh = fopen($tmpFile, 'w'); |
180 | 180 | |
181 | 181 | if (false !== $fh) { |
182 | - register_shutdown_function(static function () use ($tmpFile) { |
|
182 | + register_shutdown_function(static function() use ($tmpFile) { |
|
183 | 183 | unlink($tmpFile); |
184 | 184 | }); |
185 | 185 | |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | |
212 | 212 | $fh = fopen($tmpFile, 'w'); |
213 | 213 | if (false !== $fh) { |
214 | - register_shutdown_function(static function () use ($tmpFile) { |
|
214 | + register_shutdown_function(static function() use ($tmpFile) { |
|
215 | 215 | unlink($tmpFile); |
216 | 216 | }); |
217 | 217 |