Skip to content

Documentation improvements regarding typesafety of "equals" and "same" #5910

@DBX12

Description

@DBX12

While working with codeception/verify, I've realized that equals does not assert the types of the variables but same does. I've already opened a PR there and got informed that this change should be made first in phpunit itself.

What is your position on this? If you think the changes I made in codeception/verify are beneficial in phpunit as well, I'd happily provide a PR for it.

Did I catch all relevant locations?

  • assertEquals and similar functions in src/Framework/Assert/Functions.php:385-437
  • assertNotEquals and similar functions in src/Framework/Assert/Functions.php:439-501
  • Assert::equals and similar functions in src/Framework/Assert.php:387-431
  • Assert::notEquals and similar functions in src/Framework/Assert.php:438-490

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