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

Is there a possibility to see what a function was called with? #19

Open
abdessamadely opened this issue Jun 29, 2022 · 0 comments
Open

Comments

@abdessamadely
Copy link

Hello,

I have a situation, where I check with wasCalledWithOnce something like this:

$mock_func->wasCalledWithOnce([
    0,
    [],
    [
        'key_1' => [
            [
                'key_1_1' => [
                    [
                        'key' => null,
                        'another_key' => null,
                        'another_one' => 0
                    ]
                ]
            ]
        ],
        'key_2' => 0,
        'key_3' => 0,
        'key_4' => null,
    ],
    0
]);

It's failing at the third argument, The args values are valid, and I can't see where the issue is.

So my question is: Is there any way I can print the diff between what I give it and what the actual args, like what assertEqual is doing?

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant