matthiasnoback/symfony-config-test
PHPUnit helpers for testing Symfony Config definitions. Provides a test case trait and assertions to validate config trees, ensuring required nodes, types, and constraints behave as expected by asserting valid and invalid configuration arrays.
symfony/console) process inputs correctly.Adopt When:
symfony/config) for defining configuration schemas.Look Elsewhere If:
spatie/laravel-config or custom parsers).json-schema-validator).For Executives: "This package lets us automate and enforce configuration validation for Symfony-based systems, reducing bugs in production caused by misconfigured setups. For example, if we’re building a plugin system or a CLI tool where users define complex configs, this ensures their inputs are validated before they cause runtime failures. It’s a low-cost, high-impact way to improve reliability—especially for teams using Symfony’s Config Component. Think of it as ‘unit tests for your configuration schemas.’"
For Engineering Teams: *"This library provides PHPUnit assertions to test Symfony Config Component trees, covering:
doctrine.orm without testing doctrine.dbal).
It’s zero-boilerplate—just extend a trait and use built-in assertions like assertConfigurationIsInvalid() or assertProcessedConfigurationEquals(). It’s actively maintained (last release: 2026), supports Symfony 7/8 and PHPUnit 10–13, and integrates seamlessly with existing test suites."*For Developers:
*"Need to test that your Configuration class rejects bad inputs or processes them correctly? This package gives you:
assertConfigurationIsInvalid(): Verify exceptions for malformed configs.assertProcessedConfigurationEquals(): Check merged/processed output matches expectations.array_node.*.default_value for prototyped nodes).
It’s lightweight, well-documented, and saves hours of manual validation logic. Example:$this->assertConfigurationIsInvalid([[]], 'required_value'); // Fails if 'required_value' is missing.
```"*
How can I help you explore Laravel packages today?