fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-24 14:19:20 +00:00
parent 30b99c23ab
commit f5ecae3739
2 changed files with 7 additions and 1 deletions

View File

@ -136,7 +136,6 @@
<severity>3</severity> <severity>3</severity>
</rule> </rule>
<rule ref="PEAR.Classes.ClassDeclaration"> <rule ref="PEAR.Classes.ClassDeclaration">
<exclude-pattern>*/Install/Media/*</exclude-pattern><!-- Media uploads don't have a namespace -->
</rule> </rule>
<rule ref="PEAR.Commenting.FileComment"> <rule ref="PEAR.Commenting.FileComment">
<exclude name="PEAR.Commenting.FileComment.InvalidPackage"/> <exclude name="PEAR.Commenting.FileComment.InvalidPackage"/>
@ -166,6 +165,7 @@
</rule> </rule>
<rule ref="PSR1.Classes.ClassDeclaration"> <rule ref="PSR1.Classes.ClassDeclaration">
<severity>3</severity> <severity>3</severity>
<exclude-pattern>*/Install/Media/*</exclude-pattern><!-- Media uploads don't have a namespace -->
<exclude-pattern>*Pdf.php</exclude-pattern><!-- Just a wrapper --> <exclude-pattern>*Pdf.php</exclude-pattern><!-- Just a wrapper -->
<exclude-pattern>*Excel.php</exclude-pattern><!-- Just a wrapper --> <exclude-pattern>*Excel.php</exclude-pattern><!-- Just a wrapper -->
<exclude-pattern>*/tests/*</exclude-pattern><!-- Tests don't always have side effects --> <exclude-pattern>*/tests/*</exclude-pattern><!-- Tests don't always have side effects -->

View File

@ -86,9 +86,15 @@ parameters:
- -
message: '#.*has parameter \$con with no typehint specified#' message: '#.*has parameter \$con with no typehint specified#'
path: *Ftp/File.php path: *Ftp/File.php
-
message: '#.*Instantiated class .* WorkflowController not found.*#'
path: *pdf.php
- -
message: '#.*Constant PDF_.*#' message: '#.*Constant PDF_.*#'
path: *pdf.php path: *pdf.php
-
message: '#.*DefaultPdf.*#'
path: *pdf.php
- -
message: '#.*Cannot call method setId\(\) on mixed.*#' message: '#.*Cannot call method setId\(\) on mixed.*#'
path: *View.php path: *View.php