public function HeaderTest::testTelemetry in Auth0 Single Sign On 8.2
File
- vendor/
auth0/ auth0-php/ tests/ API/ Header/ HeaderTest.php, line 46
Class
Namespace
Auth0\TestsCode
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());
}