ErrLookup › sebastianbergmann/phpunit
sebastianbergmann/phpunit
The PHP Unit Testing framework. · PHP · 1,151 source files
Analyzed at f123cdb2a2 on 2026-08-23. 151 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| Subscriber "%s" does not implement any known interface - did | exception | error | phpunit, event-dispatcher, subscriber, extension-registration, php |
| Unknown event type "%s" | exception | error | phpunit, event-dispatcher, custom-events, php |
| Subscriber "%s" does not implement a known interface | exception | error | phpunit, type-map, subscriber, event-system, php |
| Subscriber "%s" does not exist or is not an interface | exception | error | phpunit, type-map, interface-not-found, autoload, php |
| Event class "%s" does not exist | exception | error | phpunit, type-map, class-not-found, autoload, php |
| Subscriber "%s" does not extend Subscriber interface | exception | error | phpunit, type-map, subscriber, interface-contract, php |
| Event "%s" does not implement Event interface | exception | error | phpunit, type-map, event, interface-contract, php |
| Subscriber type "%s" already registered | exception | error | phpunit, type-map, duplicate-registration, php |
| Event "%s" already assigned | exception | error | phpunit, type-map, duplicate-registration, event-system, php |
| Value for %s must not be negative. | exception | error | phpunit, telemetry, value-object, cpu-time, php |
| Value for nanoseconds must not be greater than 999999999. | exception | error | phpunit, telemetry, value-object, cpu-time, unit-conversion, php |
| Value for %s must not be negative. | exception | error | phpunit, telemetry, value-object, duration, php |
| Value for nanoseconds must not be greater than 999999999. | exception | error | phpunit, telemetry, value-object, duration, unit-conversion, php |
| Value for %s must not be negative. | exception | error | phpunit, telemetry, value-object, hrtime, php |
| Value for nanoseconds must not be greater than 999999999. | exception | error | phpunit, telemetry, value-object, hrtime, unit-conversion, php |
| getrusage() failed. | exception | error | phpunit, telemetry, getrusage, environment, php |
| getrusage() did not return the expected keys "%s" and "%s". | exception | error | phpunit, telemetry, getrusage, environment, php |
| getrusage() returned non-integer values for "%s" and/or "%s" | exception | error | phpunit, telemetry, getrusage, type-mismatch, environment, php |
| Class or interface "%s" does not exist | exception | error | phpunit, assertion, class-not-found, typo, autoload, php |
| IteratorAggregate::getIterator() returned an object that was | exception | error | php, phpunit, assertcount, iteratoraggregate, infinite-loop, traversable |
| Comparison method %s::%s() does not exist. | exception | error | php, phpunit, assertobjectequals, equals-method, reflection |
| Comparison method %s::%s() does not declare bool return type | exception | error | php, phpunit, assertobjectequals, return-type, equals-method |
| Comparison method %s::%s() does not declare exactly one para | exception | error | php, phpunit, assertobjectequals, method-signature, equals-method |
| Parameter of comparison method %s::%s() does not have a decl | exception | error | php, phpunit, assertobjectequals, parameter-type, equals-method |
| %s is not an accepted argument type for comparison method %s | exception | error | php, phpunit, assertobjectequals, type-mismatch, equals-method |
| Regular expression cannot be matched: %s | exception | error | php, phpunit, regex, pcre, backtrack-limit, assertmatchesregexp |
| Format description cannot be matched: %s | exception | error | php, phpunit, assertstringmatchesformat, pcre, backtrack-limit, format-string |
| Class or interface "%s" does not exist | exception | error | php, phpunit, assertinstanceof, class-not-found, autoloading |
| At least two interfaces must be specified | exception | error | php, phpunit, mockbuilder, interface-intersection, createmockforintersectionofinterfaces |
| Interface "%s" does not exist | exception | error | php, phpunit, mockbuilder, interface-not-found, interface-intersection |
| Interfaces must not declare the same method | exception | error | php, phpunit, mockbuilder, interface-intersection, method-collision |
| Class "%s" is an anonymous class and cannot be doubled | exception | error | php, phpunit, mockbuilder, anonymous-class, createmock |
| Class "%s" is an enumeration and cannot be doubled | exception | error | php, phpunit, mockbuilder, enum, createmock |
| Class "%s" is declared "final" and cannot be doubled | exception | error | php, phpunit, mockbuilder, final-class, createmock |
| Class or interface "%s" does not exist | exception | error | php, phpunit, mockbuilder, class-not-found, autoloading, createmock |
| Cannot double method with invalid name "%s" | exception | error | phpunit, mock-object, method-name, input-validation, identifier |
| Cannot double using a method list that contains duplicates: | exception | error | phpunit, mock-object, duplicate-method, input-validation |
| Cannot use "%s" as the name of a test double class because i | exception | error | phpunit, mock-object, class-name, input-validation, identifier |
| The name "%s" is already in use | exception | error | phpunit, mock-object, class-name, name-collision, redeclare |
| Trying to configure method "%s" which cannot be configured b | exception | error | phpunit, mock-object, partial-mock, final-method, method-not-found |
| Method %s may not return value of type %s, its declared retu | exception | error | phpunit, mock-object, return-type, type-mismatch, willreturn |
| Method %s::%s() is declared to never return | exception | error | phpunit, mock-object, never-return-type, return-value-generation, php-81 |
| Matcher with id <%s> is already registered | exception | error | phpunit, mock-object, matcher-id, duplicate-id |
| No return value is configured for %s::%s() and return value | exception | error | phpunit, mock-object, unconfigured-return, mock-vs-stub |
| Parameters for method "%s" are already configured for anothe | exception | error | phpunit, mock-object, with, expectations, willreturnmap |
| No builder found for match builder identification <%s> | exception | error | phpunit, mock-object, after, matcher-id, dangling-reference |
| Expectation for %s failed. %s | exception | error | phpunit, mock-object, with, argument-mismatch, expectation-failed |
| %s was expected to be %s but was %s. | exception | error | phpunit, mock-object, expects, invocation-count, expectation-failed |
| Return value for %s::%s() cannot be generated%s, please conf | exception | error | phpunit, mock-object, union-type, intersection-type, return-value-generation |
| Return value for %s::%s() cannot be generated: %s | exception | error | phpunit, mock-object, return-value-generation, constructor-error, reflection |
| Expected invocation at least %d time%s but it occurred %d ti | exception | error | phpunit, mock, verification, invocation-count |
| Expected invocation at least once but it never occurred. | exception | error | phpunit, mock, verification, never-invoked |
| Expected invocation at most %d time%s but it occurred %d tim | exception | error | phpunit, mock, verification, invocation-count |
| Method was expected to be called %d time%s, actually called | exception | error | phpunit, mock, verification, invocation-count |
| %s was not expected to be called more than %d times, actuall | exception | error | phpunit, mock, invocation-count, runtime-failure |
| Not enough parameter sets configured, only %d parameter sets | exception | error | phpunit, mock, parameter-sets, consecutive-calls |
| Too many parameter sets given, %d out of %d expected paramet | exception | error | phpunit, mock, parameter-sets, verification |
| Doubled method does not exist. | exception | error | phpunit, mock, never-invoked, with-constraints, misleading-message |
| Parameter count for invocation %s is too low. | exception | error | phpunit, mock, argument-count, with-constraints |
| Not enough parameter sets configured, only %d parameter sets | exception | error | phpunit, mock, parameter-sets, partial-order, consecutive-calls |
| Not enough parameter sets configured, only %d parameter sets | exception | error | phpunit, mockobject, expectation, parameter-sets, test-failure |
| %d out of %d expected unordered parameter set%s %s called, i | exception | error | phpunit, mockobject, expectation, verification, parameter-sets |
| Only %d return values have been configured for %s::%s() | exception | error | phpunit, mockobject, stub, consecutive-calls, return-values |
| No entry in the value map matched the invocation of %s::%s() | exception | error | phpunit, mockobject, stub, return-value-map, strict-matching |
| Trying to configure method "%s" with onlyMethods(), but it d | exception | error | phpunit, mockobject, onlymethods, unknown-method, reflection |
| Trying to double property "%s" of class "%s" with doubleProp | exception | error | phpunit, mockobject, property-doubling, unknown-property, reflection |
| Trying to double property "%s" of class "%s" with doubleProp | exception | error | phpunit, mockobject, property-doubling, visibility, reflection |
| Trying to double property "%s" of class "%s" with doubleProp | exception | error | phpunit, mockobject, property-doubling, static, reflection |
| Trying to double property "%s" of class "%s" with doubleProp | exception | error | phpunit, mock-object, test-double, readonly-property, reflection |
| Trying to double property "%s" of class "%s" with doubleProp | exception | error | phpunit, mock-object, test-double, final-property, reflection |
| Trying to double property "%s" of class "%s" with doubleProp | exception | error | phpunit, mock-object, test-double, untyped-property, property-hooks |
| Expected deprecation with message "%s" was not triggered | exception | error | phpunit, deprecation, assertion, expect-deprecation |
| Expected deprecation with message matching regular expressio | exception | error | phpunit, deprecation, regex, assertion |
| Failed asserting that exception with message %s "%s" is thro | exception | error | phpunit, exception-assertion, assertion-failed, expected-exception |
| Failed asserting that exception with message matching "%s" i | exception | error | phpunit, exception-assertion, regex, expected-exception |
| Failed asserting that exception with code "%s" is thrown | exception | error | phpunit, exception-assertion, error-code, expected-exception |
| Class %s is abstract | exception | error | phpunit, test-suite, abstract-class, configuration |
| Class %s is not a subclass of %s | exception | error | phpunit, test-suite, type-check, testcase |
| The tests aggregated by this TestSuite were already run | exception | error | phpunit, test-suite, state-reuse, runner |
| The current item is not a TestSuite instance and therefore d | exception | error | phpunit, iterator, composite-pattern, test-suite |
| Data Provider method %s::%s() is not public | exception | error | phpunit, data-provider, visibility, reflection |
| Data Provider method %s::%s() is not static | exception | error | phpunit, data-provider, static-method, reflection |
| Data Provider method %s::%s() expects an argument | exception | error | phpunit, data-provider, method-signature, reflection |
| Data Provider method %s::%s() does not return an iterable | exception | error | phpunit, data-provider, return-type, iterable |
| The key must be an integer or a string, %s given | exception | error | phpunit, data-provider, array-key, type-validation |
| The key must not be an empty string | exception | error | phpunit, data-provider, array-key, empty-key |
| Data set %s provided by %s is invalid, expected array but go | exception | error | phpunit, php, data-provider, tests |
| The key "%s" has already been defined by provider %s | exception | error | phpunit, php, data-provider, duplicate-key |
| Data Provider callable does not return an iterable | exception | error | phpunit, php, data-provider, closure |
| Empty data set provided by data provider | exception | error | phpunit, php, data-provider, empty-dataset |
| The key "%s" has already been defined by %s | exception | error | phpunit, php, testwith, duplicate-key |
| File "%s" does not exist | exception | error | phpunit, php, baseline, deprecation |
| File "%s" does not have line %d | exception | error | phpunit, php, baseline, file-io |
| Cannot read baseline %s, file does not exist | exception | error | phpunit, php, baseline, configuration |
| Cannot read baseline %s: %s | exception | error | phpunit, php, baseline, xml |
| Cannot read baseline %s, version %d is not supported | exception | error | phpunit, php, baseline, version-mismatch, xml |
| Cannot write baseline to "%s". | exception | error | phpunit, php, baseline, filesystem |
| Configured code coverage driver class "%s" does not exist | exception | error | phpunit, php, code-coverage, configuration |
| Configured code coverage driver class "%s" does not extend % | exception | error | phpunit, php, code-coverage, configuration, inheritance |
| Configured code coverage driver class "%s" is not instantiab | exception | error | phpunit, php, code-coverage, configuration, reflection |
| E_USER_ERROR was triggered | exception | error | phpunit, php, trigger-error, e-user-error, error-handling |
| Parameter "%s" does not exist | exception | error | phpunit, extension, configuration, xml, parameters |
| --%s-- is not a valid PHPT section | exception | error | phpunit, phpt, parser, section-header, typo |
| --%s-- section occurs more than once | exception | error | phpunit, phpt, parser, duplicate, section-header |
| PHPT file must not contain text before its first section (li | exception | error | phpunit, phpt, file-format, bom, parser |
| PHPUnit does not support PHPT --%s-- sections | exception | error | phpunit, phpt, cgi, unsupported-section, porting |
| Could not load --%s-- %s for PHPT file | exception | error | phpunit, phpt, external-file, fixtures, file-permissions |
| PHPT file must contain one of the sections --%s-- | exception | error | phpunit, phpt, required-section, parser |
| PHPT file must not contain more than one of the sections --% | exception | error | phpunit, phpt, conflicting-sections, parser |
| File referenced by --FILE_EXTERNAL-- section is empty | exception | error | phpunit, phpt, empty-file, fixtures, file-external |
| --%s-- section is empty | exception | error | phpunit, phpt, empty-section, parser |
| File %s exists, PHPT test %s will not be executed | exception | error | phpunit, phpt, code-coverage, stale-artifact, crash-recovery |
| Directory "%s" does not exist and could not be created | exception | error | phpunit, test-index, filesystem, permissions, ci |
| Directory "%s" does not exist and could not be created | exception | error | phpunit, run-history, filesystem, permissions, ci |
| Class %s cannot be found in %s | exception | error | phpunit, cli, file-not-found, test-loader, typo |
| Class %s declared in %s does not extend PHPUnit\Framework\Te | exception | error | phpunit, test-loader, base-class, wrong-inheritance |
| Cannot open bootstrap script "%s" | exception | error | phpunit, bootstrap, configuration, composer, file-not-found |
| Error in bootstrap script: %s:%s%s%s%s | exception | error | phpunit, bootstrap, syntax-error, configuration, startup-failure |
| unrecognized --order-by option: %s | exception | error | phpunit, cli, order-by, configuration, invalid-option |
| The path "%s" specified for the --log-events-text option cou | exception | error | phpunit, cli, logging, event-log, filesystem, path-resolution |
| The path "%s" specified for the --log-events-verbose-text op | exception | error | phpunit, cli, logging, event-log, verbose, path-resolution |
| Options %s and %s cannot be used together | exception | error | phpunit, cli, mutually-exclusive-options, argument-parsing |
| Option %s requires a non-empty value | exception | error | phpunit, cli, option-value, shell-interpolation, validation |
| Option %s requires a positive integer value | exception | error | phpunit, cli, option-value, numeric-validation, diff-output |
| Test file "%s" not found | validation | error | phpunit, cli, test-selection, file-not-found, realpath |
| Cannot read from %s | validation | error | phpunit, cli, test-selection, test-file-list, file-not-found |
| Cannot load XML configuration file %s | validation | error | phpunit, xml, configuration, schema-validation, migration |
| Invalid version comparison operator: "%s" | validation | error | phpunit, xml, version-constraint, configuration, phpversion |
| The file does not validate against any known schema | validation | error | phpunit, xml, migration, schema-detection, configuration |
| The file does not need to be migrated | exception | warning | phpunit, xml, migration, no-op, configuration |
| Default test suite is not configured | exception | error | phpunit, xml, test-suite, configuration, api-misuse |
| No supported schema was detected | exception | error | phpunit, xml, schema-detection, api-misuse, result-object |
| Schema for PHPUnit %s is not available | exception | error | phpunit, xml, schema, installation, validation |
| Test directory "%s" not found | exception | error | phpunit, xml, test-suite, directory-not-found, configuration |
| Test file "%s" not found | exception | error | phpunit, xml, test-suite, file-not-found, configuration, case-sensitivity |
| "%s" does not match "socket://hostname:port" format | exception | error | phpunit, output, printer, socket, url-format, logging |
| Cannot open socket %s:%d | exception | error | phpunit, socket, output, network, tcp |
| Directory "%s" does not exist and could not be created | exception | error | phpunit, filesystem, permissions, output |
| Cannot read from {file} | exception | error | phpunit, cli, file-io, test-selection |
| "%s" is not a directory | exception | error | phpunit, exclude-list, bootstrap, path-validation |
| Unable to write temporary file | exception | error | phpunit, process-isolation, temp-file, filesystem, environment |
| Unable to create temporary file for redirected output | exception | error | phpunit, process-isolation, temp-file, stderr-redirect, environment |
| Unable to spawn worker process | exception | error | phpunit, proc-open, process-isolation, environment, disable-functions |
| PHP setting "%s" contains a line-break character, which is n | exception | error | phpunit, process-isolation, ini-settings, config-validation |
| "%s" is not a valid version_compare() operator | exception | error | phpunit, xml-config, version-constraint, validation |
| Could not read XML from file "%s" | exception | error | phpunit, xml, configuration, file-io |
| Could not parse XML from empty file "%s" | exception | error | phpunit, xml, configuration, empty-file |
| Could not parse XML from empty string | exception | error | phpunit, xml, string-validation |
| Invalid expected exception message regular expression given: | exception | error | phpunit, regex, pcre, assertion, exception-expectation |
| Static method "{method_name}" cannot be invoked on mock obje | exception | error | phpunit, mockobject, static-methods, phpunit-10 |
| Passing an argument of type Generator for the %s parameter i | exception | error | phpunit, assertion, generator, count |