Programming Language PHP

Namespace Elabftw\Services

Class Check

Method/Function token

Total Examples 1

1 code examples of PHP Elabftw\Services\Check::token extracted from open source projects

Was this example useful?
0
                                                    public function testToken(): void
    {
        $token = hash('sha256', bin2hex(random_bytes(16)));
        $this->assertEquals($token, Check::token($token));
        $this->expectException(IllegalActionException::class);
        Check::token('blah');
    }