gricob/functional-test-bundle

Test suit for Symfony projects

v1.1.5 2020-06-22 09:16 UTC

This package is auto-updated.

Last update: 2020-07-22 09:43:40 UTC


README

Build Status CodeFactor

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.