summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-11 14:15:24 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-11 14:15:24 +0100
commit8fd90e04b62c10a48ac15a3a52f7cd6b4040359d (patch)
tree853e78bf91a327d7062c1dd94b6e1eedaeec47a9 /tests
parent17d68e0638e65bdd5b59a68ffe366444723f5e8d (diff)
parent9ea205dc3dd27f6e2506a4867e29b12180251620 (diff)
downloadnextcloud-server-8fd90e04b62c10a48ac15a3a52f7cd6b4040359d.tar.gz
nextcloud-server-8fd90e04b62c10a48ac15a3a52f7cd6b4040359d.zip
Merge pull request #12781 from owncloud/jenkins-curl-open-basedir
[Jenkins only] curl open basedir
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/largefilehelpergetfilesize.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/largefilehelpergetfilesize.php b/tests/lib/largefilehelpergetfilesize.php
index c97b7b32b0f..57bc2381966 100644
--- a/tests/lib/largefilehelpergetfilesize.php
+++ b/tests/lib/largefilehelpergetfilesize.php
@@ -13,6 +13,10 @@ namespace Test;
* Large files are not considered yet.
*/
class LargeFileHelperGetFileSize extends TestCase {
+ /** @var string */
+ protected $filename;
+ /** @var int */
+ protected $fileSize;
/** @var \OC\LargeFileHelper */
protected $helper;
@@ -41,6 +45,11 @@ class LargeFileHelperGetFileSize extends TestCase {
'The PHP curl extension is required for this test.'
);
}
+ if (\OC::$server->getIniWrapper()->getString('open_basedir') !== '') {
+ $this->markTestSkipped(
+ 'The PHP curl extension does not work with the file:// protocol when open_basedir is enabled.'
+ );
+ }
$this->assertSame(
$fileSize,
$this->helper->getFileSizeViaCurl($filename)