You are here

public function HeaderTest::testTelemetry in Auth0 Single Sign On 8.2

File

vendor/auth0/auth0-php/tests/API/Header/HeaderTest.php, line 46

Class

HeaderTest

Namespace

Auth0\Tests

Code

public function testTelemetry() {
  $telemetryVal = uniqid();
  $header = new Telemetry($telemetryVal);
  $this
    ->assertEquals('Auth0-Client', $header
    ->getHeader());
  $this
    ->assertEquals($telemetryVal, $header
    ->getValue());
  $this
    ->assertEquals("Auth0-Client: {$telemetryVal}\n", $header
    ->get());
}