10000 Use assertSame() instead of assertEquals() where possible · Issue #3 · sebastianbergmann/phpunit-documentation-english · GitHub
[go: up one dir, main page]

Skip to content
Use assertSame() instead of assertEquals() where possible #3
@mhujer

Description

@mhujer

Repost of sebastianbergmann/phpunit-documentation#494.


I noticed that the introductory documentation chapter uses assertEquals(). I suggest that it can be replaced with assertSame(), which is stricter a may prevent unexpected type conversion bugs.

What do you think?

If you think it is a good idea, I can prepare a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0