Skip to content

Commit 42e6c22

Browse files
gnutixSimperfit
authored andcommitted
Add compatibility layer for Symfony 4.3+, which renamed Client to KernelBrowser.
1 parent 76c3fd3 commit 42e6c22

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ matrix:
2828
env: EXTRA_PACKAGES="doctrine/phpcr-bundle:^1.3 brianium/paratest:^1.0 doctrine/phpcr-odm:^1.3"
2929
- php: 7.3
3030
env: SYMFONY_VERSION="^4.1"
31+
- php: 7.3
32+
env: SYMFONY_VERSION="^4.3@beta"
3133
allow_failures:
3234
- php: 7.2
3335
env: SYMFONY_VERSION="dev-master"

src/Test/WebTestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
3434
use Symfony\Component\Security\Core\User\UserInterface;
3535

36+
// Compatibility layer for Symfony 4.3+
37+
class_alias('Symfony\Bundle\FrameworkBundle\KernelBrowser', 'Symfony\Bundle\FrameworkBundle\Client');
38+
3639
/**
3740
* @author Lea Haensenberger
3841
* @author Lukas Kahwe Smith <smith@pooteeweet.org>

0 commit comments

Comments
 (0)