Programming Language PHP

Namespace Elabftw\Services

Class Check

Method/Function idOrExplode

Total Examples 2

2 code examples of PHP Elabftw\Services\Check::idOrExplode extracted from open source projects

Was this example useful?
0
                                                    public function testIdOrExplode(): void
    {
        $this->expectException(IllegalActionException::class);
        Check::idOrExplode(-1337);
    }
                                            
Was this example useful?
0
                                                    /**
     * Populate userData property
     */
    public function populate(int $userid): void
    {
        Check::idOrExplode($userid);
        $this->userData = $this->getUserData($userid);
        $this->userData['team'] = $this->team;
    }