diff options
Diffstat (limited to 'tests/filesystem')
-rw-r--r-- | tests/filesystem/clean_path_test.php | 4 | ||||
-rw-r--r-- | tests/filesystem/web_root_path_test.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/filesystem/clean_path_test.php b/tests/filesystem/clean_path_test.php index 38ccf1b603..5b9857ef2c 100644 --- a/tests/filesystem/clean_path_test.php +++ b/tests/filesystem/clean_path_test.php @@ -14,8 +14,8 @@ class phpbb_filesystem_clean_path_test extends phpbb_test_case public function setUp() { parent::setUp(); - $this->filesystem = new phpbb_filesystem( - new phpbb_symfony_request( + $this->filesystem = new \phpbb\filesystem( + new \phpbb\symfony_request( new phpbb_mock_request() ), dirname(__FILE__) . './../../phpBB/', diff --git a/tests/filesystem/web_root_path_test.php b/tests/filesystem/web_root_path_test.php index ae59d4f709..e0f716cdae 100644 --- a/tests/filesystem/web_root_path_test.php +++ b/tests/filesystem/web_root_path_test.php @@ -18,8 +18,8 @@ class phpbb_filesystem_web_root_path_test extends phpbb_test_case $this->set_phpbb_root_path(); - $this->filesystem = new phpbb_filesystem( - new phpbb_symfony_request( + $this->filesystem = new \phpbb\filesystem( + new \phpbb\symfony_request( new phpbb_mock_request() ), $this->phpbb_root_path, @@ -118,7 +118,7 @@ class phpbb_filesystem_web_root_path_test extends phpbb_test_case */ public function test_update_web_root_path($input, $expected, $getPathInfo, $getRequestUri = null, $getScriptName = null) { - $symfony_request = $this->getMock("phpbb_symfony_request", array(), array( + $symfony_request = $this->getMock("\phpbb\symfony_request", array(), array( new phpbb_mock_request(), )); $symfony_request->expects($this->any()) @@ -131,7 +131,7 @@ class phpbb_filesystem_web_root_path_test extends phpbb_test_case ->method('getScriptName') ->will($this->returnValue($getScriptName)); - $filesystem = new phpbb_filesystem( + $filesystem = new \phpbb\filesystem( $symfony_request, $this->phpbb_root_path, 'php' |