Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factory methods for IsEqual and IsSame matchers #1335

Closed
ghostwriter opened this issue Nov 11, 2023 · 1 comment · Fixed by #1336
Closed

Factory methods for IsEqual and IsSame matchers #1335

ghostwriter opened this issue Nov 11, 2023 · 1 comment · Fixed by #1336
Assignees
Labels
Feature Request request a new feature
Milestone

Comments

@ghostwriter
Copy link
Member

Would a PR adding a factory method for new IsEqual and IsSame matchers to Mockery be welcomed, similar to how Mockery::any() exist? i.e.

class Mockery {
    public static function equal($other) {
        return new IsEqual($other);
    }
}

Originally posted by @oprypkhantc in #1276 (comment)

@oprypkhantc
Copy link
Contributor

Awesome, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request request a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants