Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-07 22:53:01 +0300
committerLukas Reschke <lukas@statuscode.ch>2016-10-07 22:56:43 +0300
commit0245dd7221b6901aab0118688a1a16328248d530 (patch)
tree41a21191068cda8f2836bead68ea20f313ef3e3f /tests/lib/LegacyHelperTest.php
parentbccc4e618a58281f390b6baa88cc0b03b1e40172 (diff)
Simplify isSubDirectory check
Shaves off another 9ms per request as can be seen at https://blackfire.io/profiles/compare/dd54cef3-e58d-4a22-b8f4-c7c4b70697be/graph Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'tests/lib/LegacyHelperTest.php')
-rw-r--r--tests/lib/LegacyHelperTest.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/lib/LegacyHelperTest.php b/tests/lib/LegacyHelperTest.php
index faea95190ec..f1e22ea600e 100644
--- a/tests/lib/LegacyHelperTest.php
+++ b/tests/lib/LegacyHelperTest.php
@@ -76,19 +76,6 @@ class LegacyHelperTest extends \Test\TestCase {
];
}
- function testIsSubDirectory() {
- $result = OC_Helper::isSubDirectory("./data/", "/anotherDirectory/");
- $this->assertFalse($result);
-
- $result = OC_Helper::isSubDirectory("./data/", "./data/");
- $this->assertTrue($result);
-
- mkdir("data/TestSubdirectory", 0777);
- $result = OC_Helper::isSubDirectory("data/TestSubdirectory/", "data");
- rmdir("data/TestSubdirectory");
- $this->assertTrue($result);
- }
-
function testMb_array_change_key_case() {
$arrayStart = array(
"Foo" => "bar",