Test Failed
Push — revert-1636-spawn-open-task ( d97d56 )
by Michiel
24:25 queued 03:05
created
src/Phing/PropertyHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Phing/Listener/DefaultLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@
 block discarded – undo
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 = [];
Please login to merge, or discard this patch.
tests/Phing/Task/Optional/PHPStan/PHPStanAnalyseCommandBuilderTest.php 5 patches
Indentation   -16 removed lines patch added patch discarded remove patch
@@ -57,19 +57,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Switch Indentation   -16 removed lines patch added patch discarded remove patch
@@ -57,19 +57,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Spacing   -16 removed lines patch added patch discarded remove patch
@@ -57,19 +57,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Braces   -16 removed lines patch added patch discarded remove patch
@@ -57,19 +57,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -16 removed lines patch added patch discarded remove patch
@@ -57,19 +57,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
tests/Phing/Task/Optional/PHPStan/PHPStanCommandBuilderTest.php 5 patches
Indentation   -50 removed lines patch added patch discarded remove patch
@@ -49,53 +49,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Switch Indentation   -50 removed lines patch added patch discarded remove patch
@@ -49,53 +49,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Spacing   -50 removed lines patch added patch discarded remove patch
@@ -49,53 +49,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Braces   -50 removed lines patch added patch discarded remove patch
@@ -49,53 +49,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -50 removed lines patch added patch discarded remove patch
@@ -49,53 +49,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
tests/Phing/Task/Optional/PHPStan/PHPStanListCommandBuilderTest.php 5 patches
Indentation   -11 removed lines patch added patch discarded remove patch
@@ -53,14 +53,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Switch Indentation   -11 removed lines patch added patch discarded remove patch
@@ -53,14 +53,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Spacing   -11 removed lines patch added patch discarded remove patch
@@ -53,14 +53,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Braces   -11 removed lines patch added patch discarded remove patch
@@ -53,14 +53,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -11 removed lines patch added patch discarded remove patch
@@ -53,14 +53,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
tests/Phing/Task/Optional/PHPStan/PHPStanHelpCommandBuilderTest.php 5 patches
Indentation   -11 removed lines patch added patch discarded remove patch
@@ -53,14 +53,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Switch Indentation   -11 removed lines patch added patch discarded remove patch
@@ -53,14 +53,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Spacing   -11 removed lines patch added patch discarded remove patch
@@ -53,14 +53,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Braces   -11 removed lines patch added patch discarded remove patch
@@ -53,14 +53,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -11 removed lines patch added patch discarded remove patch
@@ -53,14 +53,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
tests/Phing/Task/System/EchoXMLTest.php 5 patches
Indentation   -12 removed lines patch added patch discarded remove patch
@@ -50,15 +50,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Switch Indentation   -12 removed lines patch added patch discarded remove patch
@@ -50,15 +50,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Spacing   -12 removed lines patch added patch discarded remove patch
@@ -50,15 +50,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Braces   -12 removed lines patch added patch discarded remove patch
@@ -50,15 +50,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -12 removed lines patch added patch discarded remove patch
@@ -50,15 +50,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
tests/Phing/Filter/StripWhitespaceTest.php 5 patches
Indentation   -9 removed lines patch added patch discarded remove patch
@@ -47,12 +47,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Switch Indentation   -9 removed lines patch added patch discarded remove patch
@@ -47,12 +47,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Spacing   -9 removed lines patch added patch discarded remove patch
@@ -47,12 +47,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Braces   -9 removed lines patch added patch discarded remove patch
@@ -47,12 +47,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
Upper-Lower-Casing   -9 removed lines patch added patch discarded remove patch
@@ -47,12 +47,3 @@
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
tests/Phing/Task/Optional/SonarConfigurationFileParserTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.