Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 1 month 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-11T08:02:06.000Z (about 3 years ago)
- Last Synced: 2024-09-17T06:43:00.045Z (2 months 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
[![Build Status](https://travis-ci.com/gricob/functional-test-bundle.svg?branch=master)](https://travis-ci.com/gricob/functional-test-bundle)
[![CodeFactor](https://www.codefactor.io/repository/github/gricob/functional-test-bundle/badge)](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.