[Pkg-owncloud-commits] [owncloud] 12/83: Added missing test with leading backslash
David Prévot
taffit at moszumanska.debian.org
Wed Dec 18 13:05:24 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch 5.0
in repository owncloud.
commit a7a87d074bd6803da7def6b53a496e95b631ef12
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Thu Nov 14 15:36:03 2013 +0100
Added missing test with leading backslash
---
tests/lib/files/filesystem.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/lib/files/filesystem.php b/tests/lib/files/filesystem.php
index 83e0d28..16b9237 100644
--- a/tests/lib/files/filesystem.php
+++ b/tests/lib/files/filesystem.php
@@ -104,6 +104,8 @@ class Filesystem extends \PHPUnit_Framework_TestCase {
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\', false));
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\\\'));
$this->assertEquals('/', \OC\Files\Filesystem::normalizePath('\\\\', false));
+ $this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\\path'));
+ $this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\\path', false));
$this->assertEquals('/path', \OC\Files\Filesystem::normalizePath('\\path\\'));
$this->assertEquals('/path/', \OC\Files\Filesystem::normalizePath('\\path\\', false));
$this->assertEquals('/foo/bar', \OC\Files\Filesystem::normalizePath('\\foo\\\\bar\\'));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list