Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fatal error: $this when not in object context in .../get[...]Service.php #25017

Copy link
Copy link
Closed
@nicolas-grekas

Description

@nicolas-grekas
Issue body actions
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.4

Found when running LiipFunctionalTestBundle's test suite again symfony 3.4.
The issue is that phpunit's @runInSeparateProcess feature is very risky as it requires all files required before, even-though no all file are require-able as such.

Some ideas to fix this:

  1. enable processIsolation=true in the bundle's phpunit.xml.dist, which is free from the issue
  2. not split the container in several files for tests
  3. find a way around in phpunit-bridge

I hope 3 is actually possible, that'd be best.

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.