@@ -101,7 +101,7 @@ public function validate()
101
101
*/
102
102
protected function checkContents ()
103
103
{
104
- echo 'Checking Contents tag ' .PHP_EOL ;
104
+ echo PHP_EOL . 'Checking Contents tag ' .PHP_EOL ;
105
105
echo '===================== ' .PHP_EOL ;
106
106
107
107
$ valid = true ;
@@ -129,7 +129,7 @@ protected function checkContents()
129
129
$ testsFiles = (new FileList (
130
130
$ this ->projectRoot .'tests/ ' ,
131
131
$ this ->projectRoot ,
132
- '`\.(css|inc|js|php)$`Di '
132
+ '`\.(css|inc|js|php|xml )$`Di '
133
133
))->getList ();
134
134
$ files = array_merge ($ srcFiles , $ testsFiles );
135
135
@@ -256,7 +256,7 @@ protected function checkFileTag($tag, $currentDirectory='')
256
256
*/
257
257
protected function checkPHPRelease ()
258
258
{
259
- echo 'Checking PHPRelease tags ' .PHP_EOL ;
259
+ echo PHP_EOL . 'Checking PHPRelease tags ' .PHP_EOL ;
260
260
echo '======================== ' .PHP_EOL ;
261
261
262
262
$ valid = true ;
@@ -298,7 +298,7 @@ protected function checkPHPRelease()
298
298
}
299
299
300
300
// Check validity of the tags for files in the tests root subdirectories.
301
- if (preg_match ('`^tests/.+\.(php|inc)$` ' , $ name ) === 1
301
+ if (preg_match ('`^tests/.+\.(php|inc|js|css|xml )$` ' , $ name ) === 1
302
302
&& $ as === str_replace ('tests/ ' , 'CodeSniffer/ ' , $ name )
303
303
) {
304
304
continue ;
@@ -319,7 +319,7 @@ protected function checkPHPRelease()
319
319
* Verify that all files in the `tests` directory are listed in both `<phprelease>` tags.
320
320
*/
321
321
322
- $ testFiles = (new FileList ($ this ->projectRoot .'tests/ ' , $ this ->projectRoot , '`\.(inc|php)$`Di ' ))->getList ();
322
+ $ testFiles = (new FileList ($ this ->projectRoot .'tests/ ' , $ this ->projectRoot , '`\.(inc|php|js|css|xml )$`Di ' ))->getList ();
323
323
324
324
foreach ($ testFiles as $ file ) {
325
325
foreach ($ listedFiles as $ key => $ listed ) {
0 commit comments