Skip to content

Fresh fork of master cannot run tests #38337

Closed
@michaelKaefer

Description

@michaelKaefer

Symfony version(s) affected: 3.4 and master branch

Description
Following the docs to setup Symfony for a PR (https://symfony.com/doc/current/contributing/code/tests.html) produces an error when running the tests with php ./phpunit symfony:

PHP Fatal error:  Uncaught ReflectionException: Class SymfonyExcludeListSimplePhpunit does not exist in /home/michael/symfony/symfony/.phpunit/phpunit-9.3-0/phpunit:12
Stack trace:
#0 /home/michael/symfony/symfony/.phpunit/phpunit-9.3-0/phpunit(12): ReflectionClass->__construct()
#1 {main}
  thrown in /home/michael/symfony/symfony/.phpunit/phpunit-9.3-0/phpunit on line 12
KO src/Symfony/Bundle/FrameworkBundle

How to reproduce
Create a new fork, then:

git clone git@github.com:michaelKaefer/symfony.git
cd symfony
composer update
php ./phpunit symfony

Also with:

git checkout -t origin/3.4
php ./phpunit symfony

Additional context
Tried with the following PHP versions (all produce the same error):

  • PHP 7.2.33
  • PHP 7.3.22
  • PHP 7.4.3
  • PHP 7.4.10

I use Ubuntu:

Linux thinkpad 5.4.0-48-generic #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

I found this issue: #32995 but that does not help me to successfully run the tests.

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