You are here

public function ClientsTest::testThatMethodAndPropertyReturnSameClass in Auth0 Single Sign On 8.2

File

vendor/auth0/auth0-php/tests/API/Management/ClientsTest.php, line 42

Class

ClientsTest
Class ClientsTest

Namespace

Auth0\Tests\API\Management

Code

public function testThatMethodAndPropertyReturnSameClass() {
  $api = new Management(uniqid(), uniqid());
  $this
    ->assertInstanceOf(Management\Clients::class, $api->clients);
  $this
    ->assertInstanceOf(Management\Clients::class, $api
    ->clients());
  $api->clients = null;
  $this
    ->assertInstanceOf(Management\Clients::class, $api
    ->clients());
}