Skip to content

[EventDispatcher] Possible bug in test #26810

Closed
@wwwd3v

Description

@wwwd3v
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 4.0

Hi, on this line $otherListener->preFoo is registered as a listener.

Is this not a bug? 3 lines later, the $otherListener->postFooInvoked is checked. The only way it could ever change to true is by $otherListener->postFoo being called...

The test is passing, but I was wondering if this is not a "false positive".

Thanks.

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