public function testFormat()
{
$this->assertEquals(48, strlen(new Horde_Support_Guid()));
- $this->assertRegExp('/\d{14}\.\w{23}@localhost/', (string)new Horde_Support_Guid());
+ $this->assertRegExp('/\d{14}\.[-_0-9a-zA-Z]{23}@localhost/', (string)new Horde_Support_Guid());
}
public function testDuplicates()
public function testOptions()
{
$this->assertStringEndsWith('example.com', (string)new Horde_Support_Guid(array('server' => 'example.com')));
- $this->assertRegExp('/\d{14}\.prefix\.\w{23}@localhost/', (string)new Horde_Support_Guid(array('prefix' => 'prefix')));
+ $this->assertRegExp('/\d{14}\.prefix\.[-_0-9a-zA-Z]{23}@localhost/', (string)new Horde_Support_Guid(array('prefix' => 'prefix')));
}
}