Lcobucci\JWT\ValidationDataTest::createExpectedData PHP Method

createExpectedData() private method

private createExpectedData ( string $id = null, string $sub = null, string $iss = null, string $aud = null, integer $time = 1 ) : array
$id string
$sub string
$iss string
$aud string
$time integer
return array
    private function createExpectedData($id = null, $sub = null, $iss = null, $aud = null, $time = 1)
    {
        if ($iss !== null) {
            $iss = (array) $iss;
            foreach ($iss as $key => $member) {
                $iss[$key] = (string) $member;
            }
        }
        return ['jti' => $id !== null ? (string) $id : null, 'iss' => $iss, 'aud' => $aud !== null ? (string) $aud : null, 'sub' => $sub !== null ? (string) $sub : null, 'iat' => $time, 'nbf' => $time, 'exp' => $time];
    }