Browse Source

generate baseline for tests folder

Kevin Pfeifer 2 years ago
parent
commit
5cb123d72b
2 changed files with 25 additions and 0 deletions
  1. 22 0
      tests/phpstan-baseline.neon
  2. 3 0
      tests/phpstan.neon

+ 22 - 0
tests/phpstan-baseline.neon

@@ -0,0 +1,22 @@
+parameters:
+	ignoreErrors:
+		-
+			message: "#^Call to static method now\\(\\) on an unknown class Cake\\\\Chronos\\\\Date\\.$#"
+			count: 8
+			path: TestCase/Database/Expression/CaseStatementExpressionTest.php
+
+		-
+			message: "#^Cannot call abstract static method Cake\\\\Chronos\\\\ChronosInterface\\:\\:now\\(\\)\\.$#"
+			count: 5
+			path: TestCase/Database/Expression/CaseStatementExpressionTest.php
+
+		-
+			message: "#^Static method Cake\\\\Chronos\\\\ChronosInterface\\:\\:now\\(\\) invoked with 0 parameters, 1 required\\.$#"
+			count: 5
+			path: TestCase/Database/Expression/CaseStatementExpressionTest.php
+
+		-
+			message: "#^Instantiated class Cake\\\\Chronos\\\\Date not found\\.$#"
+			count: 15
+			path: TestCase/Database/Type/DateTypeTest.php
+

+ 3 - 0
tests/phpstan.neon

@@ -1,3 +1,6 @@
+includes:
+	- phpstan-baseline.neon
+
 parameters:
 	level: 1
 	treatPhpDocTypesAsCertain: false