gricob/functional-test-bundle

Test suit for Symfony projects

v1.3.0 2021-01-12 09:49 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.