diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-09-13 09:30:56 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-09-13 09:30:56 +0200 |
commit | 759dc9bb84d712c11148a9689d294c09aa0f81d4 (patch) | |
tree | b97bc4c650007b8fb6b6b7aa80d3f1747e22bd73 /tests/files | |
parent | 40e614f56436447dffd272351e23b79c2da9fa3f (diff) | |
download | forums-759dc9bb84d712c11148a9689d294c09aa0f81d4.tar forums-759dc9bb84d712c11148a9689d294c09aa0f81d4.tar.gz forums-759dc9bb84d712c11148a9689d294c09aa0f81d4.tar.bz2 forums-759dc9bb84d712c11148a9689d294c09aa0f81d4.tar.xz forums-759dc9bb84d712c11148a9689d294c09aa0f81d4.zip |
[ticket/13904] Set properties to protected where possible in filespec
PHPBB3-13904
Diffstat (limited to 'tests/files')
-rw-r--r-- | tests/files/types_local_test.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/files/types_local_test.php b/tests/files/types_local_test.php index 1367bbfcf8..f4fa7fad3f 100644 --- a/tests/files/types_local_test.php +++ b/tests/files/types_local_test.php @@ -144,7 +144,9 @@ class phpbb_files_types_local_test extends phpbb_test_case new \phpbb\mimetype\guesser(array( 'mimetype.extension_guesser' => new \phpbb\mimetype\extension_guesser(), ))); - $filespec->local = true; + $filespec_local = new ReflectionProperty($filespec, 'local'); + $filespec_local->setAccessible(true); + $filespec_local->setValue($filespec, true); $this->container->set('files.filespec', $filespec); $this->factory = new \phpbb\files\factory($this->container); |