Menu
← Back to all error identifiers
Error Identifiers: phpunit.*
There are 18 error identifiers in the phpunit.* group:
-
phpunit.assertCount phpstan-phpunitassertSame() with count() should be replaced with assertCount().
-
phpunit.assertEquals phpstan-phpunitassertEquals() with same-type scalars should use assertSame() instead.
-
phpunit.assertFalse phpstan-phpunitassertSame(false, ...) should be replaced with assertFalse().
-
phpunit.assertNull phpstan-phpunitassertSame(null, ...) should be replaced with assertNull().
-
phpunit.assertTrue phpstan-phpunitassertSame(true, ...) should be replaced with assertTrue().
-
phpunit.attributeRequiresPhpVersion phpstan-phpunitRequiresPhp attribute needs a comparison operator before the version number.
-
phpunit.callParent phpstan-phpunitOverridden setUp() or tearDown() does not call the parent method.
-
phpunit.covers phpstan-phpunit@covers annotation references an invalid or non-existent symbol.
-
phpunit.coversClass phpstan-phpunit@coversDefaultClass references a class that does not exist.
-
phpunit.coversDuplicate phpstan-phpunitDuplicate @covers annotation is redundant with the class-level annotation.
-
phpunit.coversInterface phpstan-phpunit@covers annotation references an interface which has no executable code.
-
phpunit.coversMethod phpstan-phpunit@covers annotation references a method that does not exist on the class.
-
phpunit.dataProviderClass phpstan-phpunitData provider references a class that does not exist.
-
phpunit.dataProviderMethod phpstan-phpunitData provider references a method that does not exist on the test class.
-
phpunit.dataProviderPublic phpstan-phpunitData provider method is not public.
-
phpunit.dataProviderStatic phpstan-phpunitData provider method is not static, which is required by PHPUnit 10+.
-
phpunit.invalidPhpDoc phpstan-phpunitPHPUnit annotation is missing a space between the tag name and its value.
-
phpunit.mockMethod phpstan-phpunitMock method() call references a method that does not exist on the mocked class.