Skip to content

Tests no longer pass on a fresh repository checkout #16347

@jakzal

Description

@jakzal
$ git clone git@github.com:symfony/symfony.git && cd symfony && composer install
$ phpunit --stop-on-failure src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php
PHPUnit 5.0.8 by Sebastian Bergmann and contributors.

E

Time: 149 ms, Memory: 14.00Mb

There was 1 error:

1) Symfony\Bridge\Doctrine\Tests\Form\ChoiceList\GenericEntityChoiceListTest::testEntitiesMustHaveAToStringMethod
Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@Doctrine\ORM\Mapping\Entity" in class Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity does not exist, or could not be auto-loaded.

/symfony/src/Symfony/Bridge/Doctrine/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:54
/symfony/src/Symfony/Bridge/Doctrine/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:708
/symfony/src/Symfony/Bridge/Doctrine/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:641
/symfony/src/Symfony/Bridge/Doctrine/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php:334
/symfony/src/Symfony/Bridge/Doctrine/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php:195
/symfony/src/Symfony/Bridge/Doctrine/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php:63
/symfony/src/Symfony/Bridge/Doctrine/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php:116
/symfony/src/Symfony/Bridge/Doctrine/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php:332
/symfony/src/Symfony/Bridge/Doctrine/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php:216
/symfony/src/Symfony/Bridge/Doctrine/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:265
/symfony/src/Symfony/Bridge/Doctrine/Tests/Form/ChoiceList/GenericEntityChoiceListTest.php:43

FAILURES!
Tests: 1, Assertions: 0, Errors: 1.

composer require symfony/phpunit-bridge would solve the issue as we moved doctrine annotation autoloading to the phpunit-bridge in #13772. However, it was later removed from require-dev in #16190.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions