changed tests for using new normalizer

This commit is contained in:
Florin Peter 2013-05-24 20:37:11 +02:00
parent 736f10039d
commit 5076c0d392
2 changed files with 3 additions and 3 deletions

View File

@ -278,8 +278,8 @@ class Cache extends \PHPUnit_Framework_TestCase {
*/ */
public function testWithNormalizer() { public function testWithNormalizer() {
if(!class_exists('Normalizer')) { if(!class_exists('Patchwork\PHP\Shim\Normalizer')) {
$this->markTestSkipped('The Normalizer extension is not available.'); $this->markTestSkipped('The 3rdparty Normalizer extension is not available.');
return; return;
} }

View File

@ -72,7 +72,7 @@ class Filesystem extends \PHPUnit_Framework_TestCase {
$this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\path')); $this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\path'));
$this->assertEquals('/foo/bar', \OC\Files\Filesystem::normalizePath('/foo//bar/')); $this->assertEquals('/foo/bar', \OC\Files\Filesystem::normalizePath('/foo//bar/'));
$this->assertEquals('/foo/bar', \OC\Files\Filesystem::normalizePath('/foo////bar')); $this->assertEquals('/foo/bar', \OC\Files\Filesystem::normalizePath('/foo////bar'));
if (class_exists('Normalizer')) { if (class_exists('Patchwork\PHP\Shim\Normalizer')) {
$this->assertEquals("/foo/bar\xC3\xBC", \OC\Files\Filesystem::normalizePath("/foo/baru\xCC\x88")); $this->assertEquals("/foo/bar\xC3\xBC", \OC\Files\Filesystem::normalizePath("/foo/baru\xCC\x88"));
} }
} }