/** * @param string $methodName * @param string $path * @param array|NULL $parameters * @param array|NULL $content * @return void */ private function mockPerformCall($methodName, $path, array $parameters = NULL, array $content = NULL) { $expectedRestrictions = $this->getExpectedRestrictions($parameters, $content); $this->api->shouldReceive($methodName)->with($path, equalTo($expectedRestrictions))->once(); }