Skip to content

WebTestCase collector not special-casing return #40

Open
@simon-tma

Description

@simon-tma

The collector for a test client in functional tests isn't using the argument to map to the actual return type, leading to false positives.

    $client = static::createClient();

    $client->enableProfiler();
    $client->request('POST', '/api/1/company);
    $this->assertSame(
      0,
      $client->getProfile()->getCollector('swiftmailer')->getMessageCount()
    );

This results in:

Call to an undefined method Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface::getMessageCount()

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions