Skip to content

Assert ignoring line ending #4641

@samdark

Description

@samdark

In many cases line ending difference doesn't matter at all but the test will fail in many cases because of it. For example:

  1. When checked out from git, user may have settings to convert line endings.
  2. Line ending differences when running on other OS vs what's used in tests.

We use the following assertion-methods: https://github.com/yiisoft/yii2/blob/master/tests/TestCase.php#L117

That would be great to have line-ending insensitive assertions out of the box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature/assertionIssues related to assertions and expectationstype/enhancementA new idea that should be implemented

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions