Removed features deprecated in 4.6
Drop support for PHP 7.4 (it does not support Attributes, which are obligatory for compatibility with PHPUnit 12)
Drop support for php 7.2, 7.3
Deprecations from 4.6 will now trigger an E_USER_DEPRECATED deprecation
Deprecated the following methods, use loginUser() from Symfony 5.1+ instead of:
makeClientmakeAuthenticatedClientmakeClientWithCredentialsloginAsloginClientcreateClientWithParams
- Drop support of
run:paratest, if you still need it, define theparatest:runcommand in your project - Deprecated usage of
environmentproperty. Use thestatic::$envproperty instead.
This new major version introduces a number of breaking changes; see the upgrade guide for more details.
- Added
makeAuthenticatedClient()andmakeClientWithCredentials()methods
makeClient()doesn't accept a boolean or array as the first argument, usemakeAuthenticatedClient()ormakeClientWithCredentials($username, $password)instead
- Removed fixtures loading in favor of https://github.com/liip/LiipTestFixturesBundle
This new major version introduces a number of breaking changes; see the upgrade guide for more details.
- Added support for Symfony 4
- Added
.gitattributesto make package slimmer - Applied
declare(strict_types=1)everywhere - Added append fixture feature on
LoadFixtues - Added annotation
@DisableDatabaseCacheto disable database cache for a test
- Switched to PSR-4 dir structure with
srcandtestssubfolders - Require at least PHP 7.1
- Require at least Symfony 3.4
- Compatibility to DoctrineFixtureBundle at least 3.0
- Compatibility to Twig at least 2.0
- Compatibility to JackalopeDoctrineDBAL at least 1.3
- Switched from
nelmio/alicetotheofidry/alice-data-fixtures(which usesnelmio/alice3) - The fixtures should be declared as services and tagged with
doctrine.fixture.orm. It's done automatically if you use autoconfigure - The
runCommandmethod now returns a SymfonyCommandTesterinstance instead of the command output.
- Drop support for Symfony 2.x
- Removed HTML5 validation functionality
- The
WebTestCase::getKernelClass()function is dropped, since we migrated fromKERNEL_DIRtoKERNEL_CLASSconstant to support Symfony 4