Skip to content

simple-phpunit looping until the root #25228

Closed
@greg0ire

Description

@greg0ire
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.4.0

#25068 introduced a bug when using bin-dir: bin in Composer.

This condition will always return true until / is reached:

while (!file_exists($root.'/composer.json') || file_exists($root.'/bin/simple-phpunit')) {
if ($root === dirname($root)) {
break;
}
$root = dirname($root);
}

A simple workaround is to avoid using bin as a bin-dir.

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