From: Jan Schneider Date: Sun, 2 Jan 2011 23:05:49 +0000 (+0100) Subject: Fix tests. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=110fdafa967384f4a52b4cae28abb5634546ba3a;p=horde.git Fix tests. --- 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'))); } }