gricob / functional-test-bundle
Test suit for Symfony projects
Installs: 6 727
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: ^7.2
- illuminate/support: ^5.6|^6.0
- phpunit/phpunit: ^7.5
- symfony/browser-kit: ^4.4|^5.0
- symfony/css-selector: ^4.4|^5.0
Requires (Dev)
- doctrine/doctrine-fixtures-bundle: 3.2.*
- league/factory-muffin: ^3.1
- symfony/dom-crawler: ^4.0|^5.0
- symfony/form: ^4.4|^5.0
- symfony/http-foundation: ^4.4|^5.0
- symfony/monolog-bundle: ^3.5
- symfony/security-bundle: ^4.4|^5.0
- symfony/translation-contracts: ^1.0
- symfony/twig-bundle: ^4.4|^5.0
- symfony/var-dumper: ^4.4|^5.0
- symfony/yaml: ^4.4|^5.0
- twig/twig: ^2.10
Suggests
- doctrine/doctrine-fixtures-bundle: Required to load fixtures
- league/factory-muffin: Required to create objects using the factory
- twig/twig: Required to perform twig templates related assertions
This package is auto-updated.
Last update: 2025-03-11 16:01:43 UTC
README
Introduction
This Bundle provides base classes for functional tests on Symfony
Installation
composer require --dev gricob/functional-test-bundle
Example
use Gricob\FunctionalTestBundle\Testing\FunctionalTestCase as TestCase; class FunctionalTestCase extends TestCase { public function testGetRequest() { $response = $this->get('/home'); $response ->assertOk() ->assertSee('Welcome to functional testing!'); } }
Documentation
Check the documentation on the wiki
Inspiration
The assertions are inspired on Laravel testing assertions.