Skip to content

Improved functionality #6

@anthonyvancauwenberghe

Description

@anthonyvancauwenberghe

Could you take a look at the explanation for the frustrations with the deprecated method i posted:
sebastianbergmann/phpunit#3494 (comment)

Would this be something you are interested in to implement?

Activity

rdohms

rdohms commented on Apr 10, 2019

@rdohms
Owner

@deviouspk yes, I had originally planned to review and improve for here. Ideally without breaking BC and by introducing new asserts. I saw your description and it looks like a good starting point to discuss.

added this to the v1.0 milestone on Apr 10, 2019
jagarsoft

jagarsoft commented on Feb 16, 2022

@jagarsoft

Hello!!

How about you use an array of options? like this:

[
'checkForObjectIdentity' => true,
'strict' => false,
'order' => true
]

JakeQZ

JakeQZ commented on Mar 21, 2025

@JakeQZ

👍 for providing this extension.

For the case where both arrays are non-associative, could the Constraint simply check for this, and if both are indexed (or empty) arrays, ignore the keys? This would avoid any need for an extra parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @rdohms@jagarsoft@anthonyvancauwenberghe@JakeQZ

        Issue actions

          Improved functionality · Issue #6 · rdohms/phpunit-arraysubset-asserts