Fix tests.
authorJan Schneider <jan@horde.org>
Sun, 2 Jan 2011 23:05:49 +0000 (00:05 +0100)
committerJan Schneider <jan@horde.org>
Sun, 2 Jan 2011 23:05:49 +0000 (00:05 +0100)
framework/Support/test/Horde/Support/GuidTest.php

index b60a06f..deae0b6 100644 (file)
@@ -19,7 +19,7 @@ class Horde_Support_GuidTest extends PHPUnit_Framework_TestCase
     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()
@@ -42,6 +42,6 @@ class Horde_Support_GuidTest extends PHPUnit_Framework_TestCase
     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')));
     }
 }