DbTestCase::getUniqueInteger PHP Method

getUniqueInteger() protected method

Get a unique random integer
protected getUniqueInteger ( )
    protected function getUniqueInteger()
    {
        static $int = NULL;
        if (is_null($this->int)) {
            return $this->int = mt_rand(1000, 10000);
        }
        return $this->int++;
    }