From 110fdafa967384f4a52b4cae28abb5634546ba3a Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 3 Jan 2011 00:05:49 +0100 Subject: [PATCH] Fix tests. --- framework/Support/test/Horde/Support/GuidTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Support/test/Horde/Support/GuidTest.php b/framework/Support/test/Horde/Support/GuidTest.php index b60a06f71..deae0b6ad 100644 --- a/framework/Support/test/Horde/Support/GuidTest.php +++ b/framework/Support/test/Horde/Support/GuidTest.php @@ -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'))); } } -- 2.11.0