https://github.com/gricob/functional-test-bundle
Simplify your Symfony functional tests
https://github.com/gricob/functional-test-bundle
symfony symfony-bundle testing
Last synced: about 2 months ago
JSON representation
Simplify your Symfony functional tests
- Host: GitHub
- URL: https://github.com/gricob/functional-test-bundle
- Owner: gricob
- Created: 2019-10-20T21:27:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-11T08:02:06.000Z (almost 5 years ago)
- Last Synced: 2025-02-22T23:08:37.244Z (over 1 year ago)
- Topics: symfony, symfony-bundle, testing
- Language: PHP
- Homepage:
- Size: 310 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
[](https://travis-ci.com/gricob/functional-test-bundle)
[](https://www.codefactor.io/repository/github/gricob/functional-test-bundle)
## Introduction
This Bundle provides base classes for functional tests on Symfony
### Installation
```bash
composer require --dev gricob/functional-test-bundle
```
### Example
```php
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](https://github.com/gricob/functional-test-bundle/wiki)
## Inspiration
The assertions are inspired on [Laravel testing](https://laravel.com/docs/master/testing) assertions.