PHPackages                             matthiasnoback/symfony-config-test - 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. matthiasnoback/symfony-config-test

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

matthiasnoback/symfony-config-test
==================================

Library for testing user classes related to the Symfony Config Component

v6.2.0(3mo ago)1679.8M↓12.1%35[1 issues](https://github.com/SymfonyTest/SymfonyConfigTest/issues)[2 PRs](https://github.com/SymfonyTest/SymfonyConfigTest/pulls)20MITPHPPHP ^8.1CI passing

Since Aug 29Pushed 2mo ago11 watchersCompare

[ Source](https://github.com/SymfonyTest/SymfonyConfigTest)[ Packagist](https://packagist.org/packages/matthiasnoback/symfony-config-test)[ Docs](https://github.com/matthiasnoback/SymfonyConfigTest)[ RSS](/packages/matthiasnoback-symfony-config-test/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (40)Used By (20)

Symfony Config Test
===================

[](#symfony-config-test)

*By Matthias Noback and contributors*

[![Build Status](https://github.com/SymfonyTest/SymfonyConfigTest/actions/workflows/ci.yaml/badge.svg)](https://github.com/SymfonyTest/SymfonyConfigTest/actions/workflows/ci.yaml)

Writing configuration classes using the [Symfony Config Component](https://symfony.com/doc/current/components/config/definition.html) can be quite hard. To help you verify the validity of the resulting config node tree, this library provides a PHPUnit test case and some custom assertions.

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

[](#installation)

Using Composer:

```
composer require --dev matthiasnoback/symfony-config-test

```

Usage
-----

[](#usage)

Create a test case and use the trait from `Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait`. Then implement `getConfiguration()`:

```
