Skip to content

gricob/functional-test-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.