lithium\tests\cases\util\StringTest::testUuidGeneration PHP Method

testUuidGeneration() public method

public testUuidGeneration ( )
    public function testUuidGeneration()
    {
        $result = String::uuid();
        $pattern = "/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[8-9a-b][a-f0-9]{3}-[a-f0-9]{12}\$/";
        $this->assertPattern($pattern, $result);
        $result = String::uuid();
        $this->assertPattern($pattern, $result);
    }