Download the PHP package liorchamla/symfony-test-helpers without Composer
On this page you can find all versions of the php package liorchamla/symfony-test-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download liorchamla/symfony-test-helpers
More information about liorchamla/symfony-test-helpers
Files in liorchamla/symfony-test-helpers
Package symfony-test-helpers
Short Description Provides cool tools to make testing over symfony smoothie and great !
License MIT
Informations about the package symfony-test-helpers
Symfony Test Helpers
Providing smooth and fresh helpers for your functional tests!
Contents
- Installation
- Basic Usage
- Details
Installation
Since it is not a bundle, you don't need any more configuration 👍
Basic Usage
Get everything out of the box by extending Liior\SymfonyTestHelpers\WebTestCase
💪
Details
The library contains several traits and a base class called Liior\SymfonyTestHelpers\WebTestCase
. By extending this WebTestCase
class, you automatically use all the traits, but you can also use only one or several traits on a normal WebTestCase class.
You can use whatever you see below, out of the box, by extending Liior\SymfonyTestHelpers\WebTestCase
WithClientTrait part 1: No need to initialize a client anymore
With this trait, you get a KernelBrowser
(a.k.a. client) out of the box.
WithClientTrait part 2: HTTP methods made easy
With this trait, you get shortcuts for five HTTP methods :
WithAuthenticationTrait: Act as an authenticated user with chosen roles
With this trait, you get shortcut methods to act as an authenticated user:
You can also authenticate with a real user !
WithDatabaseTrait: Interaction with database made easy
With this trait, you can retrieve Doctrine EntityManager, Repositories and assert that a string is found in a table (experimental)
WithFakerTrait: Using faker made easy
With this trait, you gain access to faker.
All versions of symfony-test-helpers with dependencies
symfony/framework-bundle Version ^5.0
fzaninotto/faker Version ^1.9
doctrine/doctrine-bundle Version ^2.0
symfony/security-bundle Version ^5.0
symfony/browser-kit Version ^5.0
doctrine/orm Version ^2.7
symfony/phpunit-bridge Version ^5.0