Skip to content

[phpunit-bridge] Correctly handling locale #11087

Closed
@melkamar

Description

@melkamar

Some of our unit tests break when using phpunit-bridge due to this "feature":

Forces the tests to use a consistent locale (C);

There is no further documentation about this.

  • Can the default locale be changed to something else than C?
  • What is the proper way to write code that depends on the locale? Are we supposed to explicitly call setlocale() in every function that needs it so that granular unit tests pass?

Metadata

Metadata

Assignees

No one assigned

    Labels

    PHPUnitBridgehasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions