PHPackages                             webfactory/symfony-application-tests - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. webfactory/symfony-application-tests

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

webfactory/symfony-application-tests
====================================

Contains several generic test scenarios that can be applied to Symfony 2 applications.

1.1.3(6y ago)1011.5k[4 issues](https://github.com/webfactory/symfony-application-tests/issues)1MITPHPPHP ^7.2.0

Since Sep 25Pushed 6y ago6 watchersCompare

[ Source](https://github.com/webfactory/symfony-application-tests)[ Packagist](https://packagist.org/packages/webfactory/symfony-application-tests)[ RSS](/packages/webfactory-symfony-application-tests/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (20)Versions (26)Used By (1)

Symfony Application Tests
=========================

[](#symfony-application-tests)

[![Build Status](https://camo.githubusercontent.com/dc9a0255b4adbc0594e7c216a08429cdefc395d957402a46187855cb170e9bbc/68747470733a2f2f7472617669732d63692e6f72672f776562666163746f72792f73796d666f6e792d6170706c69636174696f6e2d74657374732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/webfactory/symfony-application-tests)

Generic functional tests that can be applied to any Symfony application.

Applied Checks
--------------

[](#applied-checks)

The following checks are automatically applied as soon as the provided test cases are registered.

The checks are often simplistic, but they proofed to be helpful to find common configuration mistakes early.

### Twig Templates

[](#twig-templates)

The tests ensure that the Twig templates are at least compilable and that all used functions are available.

### Twig Extensions

[](#twig-extensions)

Services that are registered as Twig extensions must at least implement the corresponding interface.

### Event Subscribers

[](#event-subscribers)

Registered event subscribers must implement the correct interfaces and all referenced listener methods must be callable.

### Validators

[](#validators)

Registered validators must implement the correct interface and in Symfony &lt; 2.7, an alias must be provided in the configuration.

### Form Types

[](#form-types)

Registered form types must implement the corresponding interface and aliases in configuration and implementation must match.

### Role Annotations

[](#role-annotations)

It is ensured that only existing roles are referenced by @Secure annotations. The support for these annotations is provided by the [SecurityExtraBundle](https://github.com/schmittjoh/JMSSecurityExtraBundle), which does not belong to the Symfony core.

Example:

```
/**
 * Check will fail if the role ROLE_ADMIN is not configured in the security.yml.
 *
 * @Secure(roles="ROLE_ADMIN")
 */
public function myAction()
{
    // [...]
}

```

### Services

[](#services)

Each application service must be at least instantiable (abstract and synthetic services are excluded).

Installation
------------

[](#installation)

Use the following command to install the package via [Composer](http://getcomposer.org/):

```
composer require --dev webfactory/symfony-application-tests

```

Usage
-----

[](#usage)

Simply add the tests directory to your `phpunit.xml`:

```

            vendor/webfactory/symfony-application-tests/src/Webfactory/Tests/

```

The library uses the functional testing infrastructure from Symfony. Therefore, you might have to configure your kernel directory:

```

```

Details are available at .

### Advanced Kernel Configuration

[](#advanced-kernel-configuration)

If the kernel directory configuration does not suit your needs, then you also have the opportunity to configure the class of the kernel:

```

```

To make this work, the kernel must be loadable by the class loader.

Changelog
---------

[](#changelog)

### 0.5.3 -&gt; 0.6.0

[](#053---060)

Removed constraints on form type aliases, which are deprecated since Symfony 2.8.

Credits, Copyright and License
------------------------------

[](#credits-copyright-and-license)

This library was started at webfactory GmbH, Bonn.

-
-

Copyright 2014-2017 webfactory GmbH, Bonn. Code released under [the MIT license](LICENSE).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~90 days

Recently: every ~116 days

Total

23

Last Release

2259d ago

Major Versions

0.6.1 → 1.0.02018-11-30

PHP version history (4 changes)0.0.1PHP &gt;=5.3.10,&lt;6

0.3.0PHP &gt;=5.3.10

0.4.0PHP ^5.5.0 | ^7.0.0

1.0.0PHP ^7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4ed0a0f5a1c56f7df31bb8c854a2ad99d24281dc8df4b4d3dd986a9e84b7a24?d=identicon)[webfactory](/maintainers/webfactory)

---

Top Contributors

[![MatthiasMolitor](https://avatars.githubusercontent.com/u/1383323?v=4)](https://github.com/MatthiasMolitor "MatthiasMolitor (16 commits)")[![MalteWunsch](https://avatars.githubusercontent.com/u/2504942?v=4)](https://github.com/MalteWunsch "MalteWunsch (8 commits)")[![mpdude](https://avatars.githubusercontent.com/u/1202333?v=4)](https://github.com/mpdude "mpdude (3 commits)")[![janopae](https://avatars.githubusercontent.com/u/8160319?v=4)](https://github.com/janopae "janopae (1 commits)")

---

Tags

containerphpsymfonytestingteststestingsymfonytestsintegration-testsfunctional tests

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webfactory-symfony-application-tests/health.svg)

```
[![Health](https://phpackages.com/badges/webfactory-symfony-application-tests/health.svg)](https://phpackages.com/packages/webfactory-symfony-application-tests)
```

###  Alternatives

[dama/doctrine-test-bundle

Symfony bundle to isolate doctrine database tests and improve test performance

1.2k37.2M144](/packages/dama-doctrine-test-bundle)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)[typo3/testing-framework

The TYPO3 testing framework provides base classes for unit, functional and acceptance testing.

675.0M775](/packages/typo3-testing-framework)[mattiasgeniar/phpunit-query-count-assertions

A custom assertion for phpunit that allows you to count the amount of SQL queries used in a test. Can be used to enforce certain performance characteristics (ie: limit queries to X for a certain action).

160730.9k2](/packages/mattiasgeniar-phpunit-query-count-assertions)[code-distortion/adapt

A Laravel package that builds databases for your tests, improving their speed.

2835.5k](/packages/code-distortion-adapt)[happyr/service-mocking

Make it easy to mock services in a built container

48253.8k2](/packages/happyr-service-mocking)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
