changed tests for using new normalizer
This commit is contained in:
parent
736f10039d
commit
5076c0d392
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue