Removed features deprecated in 4.6
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:
makeClient
makeAuthenticatedClient
makeClientWithCredentials
loginAs
loginClient
createClientWithParams
- Drop support of
run:paratest
, if you still need it, define theparatest:run
command in your project - Deprecated usage of
environment
property. Use thestatic::$env
property 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
.gitattributes
to make package slimmer - Applied
declare(strict_types=1)
everywhere - Added append fixture feature on
LoadFixtues
- Added annotation
@DisableDatabaseCache
to disable database cache for a test
- Switched to PSR-4 dir structure with
src
andtests
subfolders - 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/alice
totheofidry/alice-data-fixtures
(which usesnelmio/alice
3) - The fixtures should be declared as services and tagged with
doctrine.fixture.orm
. It's done automatically if you use autoconfigure - The
runCommand
method now returns a SymfonyCommandTester
instance 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_DIR
toKERNEL_CLASS
constant to support Symfony 4