aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_processing
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-05-16 00:14:40 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-05-16 23:23:10 +0200
commit92e1e86e5c75879c2b538cbf738de947eadb08d3 (patch)
tree9ff3d1b33ba70223d9d6c98b6908138ede852118 /tests/text_processing
parent14ab0ba594c1b78176452c012965fa4ec723f37f (diff)
download<?php /** * * This file is part of the phpBB Forum Software package. * * @copyright (c) phpBB Limited <https://www.phpbb.com> * @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ class phpbb_filesystem_is_absolute_test extends phpbb_test_case { /** @var \phpbb\files
PHPBB3-11542
Diffstat (limited to 'tests/text_processing')
0 files changed, 0 insertions, 0 deletions
tion is_absolute_data() { return array( // Empty array('', false), // Absolute unix style array('/etc/phpbb', true), // Unix does not support \ so that is not an absolute path array('\etc\phpbb', false), // Absolute windows style array('c:\windows', true), array('C:\Windows', true), array('c:/windows', true), array('C:/Windows', true), // Executable array('etc/phpbb', false), array('explorer.exe', false), // Relative subdir array('Windows\System32', false), array('Windows\System32\explorer.exe', false), array('Windows/System32', false), array('Windows/System32/explorer.exe', false), // Relative updir array('..\Windows\System32', false), array('..\Windows\System32\explorer.exe', false), array('../Windows/System32', false), array('../Windows/System32/explorer.exe', false), ); } /** * @dataProvider is_absolute_data */ public function test_is_absolute($path, $expected) { $this->assertEquals($expected, $this->filesystem->is_absolute_path($path)); } }