sonrac/silex-functional-tests-coverage

Add unit tests for functional tests for best coverage

2.4.7 2018-07-14 14:22 UTC

README

Build Status StyleCI

codecov

Scrutinizer Build Scrutinizer Scrutinizer Code Coverage codecov Packagist Latest Unstable Version License Total Downloads Monthly Downloads Daily Downloads composer.lock

Silex coverage for functional tests

Idea

Functional tests mechanism concatenation with emulation is called in unit tests. All function tests located in trait and include in functional and unit as trait

Installation

composer require sonrac/silex-functional-tests-coverage

Class description

Class Description
BaseControllerTest Base controllers test for unit testing
BaseWebTest Base functional test controller
OnceMigrationUnitTest Run functional test with running migration on test beginning and rollback after test finished
OnceMigrationUnitTest Run unit test with running migration on test beginning and rollback after test finished
OnceMigrationWebTest Run functional test with running migration on test beginning and rollback after test finished
OnceRunMigration Class for once run migration and seeds
TestApplication Abstract class for init application instance
UnitTest Base unit test with bases traits (BootTraits)

Traits description

Trait Description
BootTraits Boot trait in class
InitMigrationTestTrait Using for once run migration in unit or functional tests
ControllersTestTrait Using for additional helper functions in functional tests
MigrationsTrait Trait for build migration config
InitMigrationAppTrait Trait for init test app migration mechanism

Exceptions

Exception Description
MaxRedirectException Maximum redirect execution exception

Class api

Docs

Examples

See example project