Registry / testing / matthiasnoback-symfony-dependency-injection-test

matthiasnoback-symfony-dependency-injection-test

JSON →
library6.3.0phppackagistunverified

Library for testing user classes related to the Symfony Dependency Injection Component.

composer require matthiasnoback/symfony-dependency-injection-test
INSTALL
IMPORT
SIG · MATTHIASNOBACK-SYM
M
matthiasnoback-symfony-dependency-injection-test
testingphpv6.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AbstractContainerBuilderTestCase
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractContainerBuilderTestCase;

Extend the test case to assert container builder configuration.

use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractContainerBuilderTestCase; class MyServiceTest extends AbstractContainerBuilderTestCase { public function testContainer() { $this->assertContainerBuilderHasService('my_service'); } }
Debug
Known issues
gotchaRequires PHPUnit and Symfony DI components; may conflict with other testing frameworks.
fix
Ensure PHPUnit is installed and use the correct Symfony DI version.
affects: >=6.0
Upgrade
Version history
6.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
matthiasnoback-symfony-dependency-injection-test — pip install matthiasnoback-symfony-dependency-injection-test · libregistry