Skip to content

Use assertSame() instead of assertEquals() where possible #3

Closed
@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