I'd like to create a mock in phpunit to verify that a function is being called with the correct parameter. The parameter is an associative array that contains three elements, two known, and one unknown:
array( 'objecttype' => 'thing', 'objectid'=> 2, 'tstamp' => [some tstamp here] )
Since I don't know the exact full array, I can't use the equalTo contraint. I could use a combination of logicalAnd, contains, and arrayHasKey to sort of get there, but that seems pretty hacky, and, if for some crazy reason my keys and values were mixed up, it wouldn't catch the error. Is there a better way to handle this?