Back to Phpunit

Deprecations

DEPRECATIONS.md

13.3.05.3 KB
Original Source

Deprecations

Soft Deprecations

This functionality is currently soft-deprecated:

Writing Tests

Assertions, Constraints, and Expectations

IssueDescriptionSinceReplacement
#6537id() and after() for mock object expectations13.1.0
#6560expectExceptionMessage()13.2.0expectExceptionMessageIsOrContains()

Hard Deprecations

This functionality is currently hard-deprecated:

Writing Tests

Assertions, Constraints, and Expectations

IssueDescriptionSinceReplacement
#6461TestCase::any()12.5.5Use a test stub instead or configure a real invocation count expectation
#6505Calling atLeast() with an argument that is not positive13.0.2Use a positive argument instead
#6507Support for using with*() without expects()13.0.2Either configure an expected invocation count using expects()or use a test stub without the with*() call instead

Running Tests

IssueDescriptionSinceReplacement
#6075--order-by duration CLI option13.2.0Use --order-by duration-ascending instead
#6075--order-by size CLI option13.2.0Use --order-by size-ascending instead
#6075executionOrder="duration" XML configuration attribute value13.2.0Use executionOrder="duration-ascending" instead
#6075executionOrder="size" XML configuration attribute value13.2.0Use executionOrder="size-ascending" instead
#6515--log-events-verbose-text <file> CLI option13.1.0Use --log-events-verbose-text <file> --with-telemetry instead
--cache-result CLI option13.3.0Use --record-test-run-history instead
--do-not-cache-result CLI option13.3.0Use --do-not-record-test-run-history instead
cacheResult XML configuration attribute13.3.0Use recordTestRunHistory instead

Extending PHPUnit

IssueDescriptionSinceReplacement
TextUI\Configuration\Configuration::cacheResult()13.3.0Use recordTestRunHistory() instead
TextUI\Configuration\Configuration::testResultCacheFile()13.3.0Use testRunHistoryFile() instead