File tree 3 files changed +25
-23
lines changed
3 files changed +25
-23
lines changed Original file line number Diff line number Diff line change 84
84
</rule >
85
85
86
86
<!-- To be addressed in test refactor. -->
87
- <rule ref =" PSR1.Classes.ClassDeclaration.MultipleClasses" >
88
- <exclude-pattern >/tests/OutputTest\.php$</exclude-pattern >
89
- </rule >
90
87
<rule ref =" PSR1.Files.SideEffects.FoundWithSymbols" >
91
88
<exclude-pattern >/tests/*\.php$</exclude-pattern >
92
89
</rule >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace PHP_Parallel_Lint \PhpParallelLint \Tests \Helpers ;
4
+
5
+ use PHP_Parallel_Lint \PhpParallelLint \Writers \WriterInterface ;
6
+
7
+ class TestWriter implements WriterInterface
8
+ {
9
+ /** @var string */
10
+ protected $ logs = "" ;
11
+
12
+ /**
13
+ * @param string $string
14
+ */
15
+ public function write ($ string )
16
+ {
17
+ $ this ->logs .= $ string ;
18
+ }
19
+
20
+ public function getLogs ()
21
+ {
22
+ return $ this ->logs ;
23
+ }
24
+ }
Original file line number Diff line number Diff line change 15
15
use PHP_Parallel_Lint \PhpParallelLint \Outputs \CheckstyleOutput ;
16
16
use PHP_Parallel_Lint \PhpParallelLint \Outputs \GitLabOutput ;
17
17
use PHP_Parallel_Lint \PhpParallelLint \Result ;
18
- use PHP_Parallel_Lint \PhpParallelLint \Writers \ WriterInterface ;
18
+ use PHP_Parallel_Lint \PhpParallelLint \Tests \ Helpers \ TestWriter ;
19
19
use Tester \Assert ;
20
20
use Tester \TestCase ;
21
21
@@ -100,24 +100,5 @@ public function getGitLabOutputData()
100
100
}
101
101
}
102
102
103
- class TestWriter implements WriterInterface
104
- {
105
- /** @var string */
106
- protected $ logs = "" ;
107
-
108
- /**
109
- * @param string $string
110
- */
111
- public function write ($ string )
112
- {
113
- $ this ->logs .= $ string ;
114
- }
115
-
116
- public function getLogs ()
117
- {
118
- return $ this ->logs ;
119
- }
120
- }
121
-
122
103
$ testCase = new OutputTest ();
123
104
$ testCase ->run ();
You can’t perform that action at this time.
0 commit comments