Skip to content

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

@abdessamadely

Description

@abdessamadely

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,

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