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

Sign up
Appearance settings

error about global side-effects in non-isolated tests #265

Open
@staabm

Description

I think it would be helpful if we could error in tests which trigger a global side-effect like e.g.

  • error_reporting(E_ALL) when not restored to the old value within the test, see example
  • things like registration of a shutdown/autoload/tick/error-handler/exception-handler/stream-wrapper/...-function without cleanup
  • changes in global/super-global variables

no error should appear in case such a pattern occurs in tests which a run using PHPUnit process isolation (@runInSeparateProcess, @runTestsInSeparateProcesses, etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /