8
8
9
9
namespace PHP_CodeSniffer \Tests \Core \Runner ;
10
10
11
+ use PHP_CodeSniffer \Config ;
11
12
use PHP_CodeSniffer \Files \DummyFile ;
12
13
use PHP_CodeSniffer \Ruleset ;
13
14
use PHP_CodeSniffer \Runner ;
@@ -116,6 +117,12 @@ public static function reset()
116
117
*/
117
118
public function testNoProgressIsShownWhenDisabled ()
118
119
{
120
+ if (version_compare (Config::VERSION , '4.0 ' , '>= ' ) === true ) {
121
+ // This test is temporarily disabled on PHPCS 4.x as the stdOut/stdErr handling needs
122
+ // a rewrite, as, as things are, it makes testing impossible.
123
+ $ this ->markTestSkipped ('This test is incompatible with PHPCS 4.0 (for now) ' );
124
+ }
125
+
119
126
$ this ->expectOutputString ('' );
120
127
121
128
self ::$ config ->showProgress = false ;
@@ -134,6 +141,12 @@ public function testNoProgressIsShownWhenDisabled()
134
141
*/
135
142
public function testProgressDotSkippedFiles ()
136
143
{
144
+ if (version_compare (Config::VERSION , '4.0 ' , '>= ' ) === true ) {
145
+ // This test is temporarily disabled on PHPCS 4.x as the stdOut/stdErr handling needs
146
+ // a rewrite, as, as things are, it makes testing impossible.
147
+ $ this ->markTestSkipped ('This test is incompatible with PHPCS 4.0 (for now) ' );
148
+ }
149
+
137
150
$ nrOfFiles = 10 ;
138
151
$ this ->expectOutputString ('.S.S.S.S.S 10 / 10 (100%) ' .PHP_EOL );
139
152
@@ -162,6 +175,12 @@ public function testProgressDotSkippedFiles()
162
175
*/
163
176
public function testEndOfLineSummary ($ nrOfFiles , $ expected )
164
177
{
178
+ if (version_compare (Config::VERSION , '4.0 ' , '>= ' ) === true ) {
179
+ // This test is temporarily disabled on PHPCS 4.x as the stdOut/stdErr handling needs
180
+ // a rewrite, as, as things are, it makes testing impossible.
181
+ $ this ->markTestSkipped ('This test is incompatible with PHPCS 4.0 (for now) ' );
182
+ }
183
+
165
184
$ this ->expectOutputString ($ expected );
166
185
167
186
for ($ i = 1 ; $ i <= $ nrOfFiles ; $ i ++) {
0 commit comments