The PHPUnit 9 Shift automates the upgrade of your PHPUnit 8 test suite to PHPUnit 9. Using the PHPUnit 9 Shift to automatically upgrade your PHPUnit test suite has an estimated time savings of 1 hour.
tests
folder.TestCase
methods.phpunit/phpunit
composer dependency to ^9.0
.assertInternalType
to its type specific equivalent.assertContains
and converting to the string
assertion when appropriate.expectExceptionMessageRegExp
and assertEquals
.@see Classname::<*>
and assertAttribute*
.While the PHPUnit 9 Shift addresses most of the backward incompatible changes, you may wish to review the release notes for additional details.
Sign in with any of the following services to connect Shift with your Laravel project.
Don't use one of these services?
Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.