SDK version: auth0/auth0-php 8.11.1 PHP SDK for Auth0 Authentication and Management APIs.
PHP version: PHP 8.3.9
In this file, src/Utility/HttpRequest.php, it checks to see if a method exists on the $mockedResponse object but it's not a method, it's a property, so this will always return false. I am happy to create a PR for this but I wanted just to make sure I wasn't doing something wrong in the first place.
Checklist
SDK Version
Other (specify below)
PHP Version
Other (specify below)
Description
SDK version: auth0/auth0-php 8.11.1 PHP SDK for Auth0 Authentication and Management APIs. PHP version: PHP 8.3.9
In this file, src/Utility/HttpRequest.php, it checks to see if a method exists on the $mockedResponse object but it's not a method, it's a property, so this will always return false. I am happy to create a PR for this but I wanted just to make sure I wasn't doing something wrong in the first place.
From: src/Utility/HttpRequest.php
How can we reproduce this issue?
If you create a mock, you'll find the closure is never run. For example;