From: Andy S. <an...@us...> - 2005-09-13 18:16:15
|
Update of /cvsroot/gallery/gallery2/modules/core/test/phpunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27489/test/phpunit Modified Files: PlatformTest.class Log Message: FIX: %#d doesn't work on 2 out of 2 tested WinXP platforms. Use %d as %e replacement and replace leading zero with space if necessary. Index: PlatformTest.class =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/core/test/phpunit/PlatformTest.class,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- PlatformTest.class 26 Aug 2005 21:35:37 -0000 1.36 +++ PlatformTest.class 13 Sep 2005 18:16:07 -0000 1.37 @@ -635,10 +635,8 @@ function testStrftime() { $this->assertEquals('2005 03', $this->_platform->strftime('%Y %m', 1110101111)); - /* For windows we replace %e with %#d which doesn't have a leading space */ - $this->assertEquals( - GalleryUtilities::isA($this->_platform, 'WinNtPlatform') ? '6 11' : ' 6 11', - $this->_platform->strftime('%e %S', 1110101111)); + /* For windows we replace %e with %d and convert leading zeros to spaces */ + $this->assertEquals( ' 6 11', $this->_platform->strftime('%e %S', 1110101111)); /* Verify UTF-8 text in format string is not mangled (only % tokens convert to UTF-8) */ $this->assertEquals("\xd0\x9d\xd0\xb5 2005 \xd0\xbd %\n03", |