Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.