Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[DI] Cannot declare class ...\DefinitionDecorator, because the name is already in use #21369

Copy link
Copy link
Closed
@wouterj

Description

@wouterj
Issue body actions
Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no
Symfony version 3.3-dev

When using DefinitionDecorator in a unit test, the error above will be triggered. Seems like the renaming is not done properly.

Test output

There was 1 error:

1) Symfony\Cmf\SeoBundle\Tests\Unit\DependencyInjection\CmfSeoExtensionTest::testErrorHandlingPHPCR
Cannot declare class Symfony\Component\DependencyInjection\DefinitionDecorator, because the name is already in use

/home/travis/build/symfony-cmf/seo-bundle/.phpunit/phpunit-5.3/vendor/symfony/phpunit-bridge/DeprecationErrorHandler.php:73
/home/travis/build/symfony-cmf/seo-bundle/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ChildDefinition.php:226
/home/travis/build/symfony-cmf/seo-bundle/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/DefinitionDecorator.php:16
/home/travis/build/symfony-cmf/seo-bundle/src/DependencyInjection/CmfSeoExtension.php:254
/home/travis/build/symfony-cmf/seo-bundle/src/DependencyInjection/CmfSeoExtension.php:240
/home/travis/build/symfony-cmf/seo-bundle/src/DependencyInjection/CmfSeoExtension.php:83
/home/travis/build/symfony-cmf/seo-bundle/vendor/matthiasnoback/symfony-dependency-injection-test/PhpUnit/AbstractExtensionTestCase.php:54
/home/travis/build/symfony-cmf/seo-bundle/tests/Unit/DependencyInjection/CmfSeoExtensionTest.php:192

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.