1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 22:28:46 +01:00

[ticket/12099] Fix several issues in path_helper test

PHPBB3-12099
This commit is contained in:
Joas Schilling 2014-05-08 11:03:50 +02:00
parent 624c0e4ef6
commit b378bd7a2e

View File

@ -13,6 +13,7 @@
class phpbb_path_helper_test extends phpbb_test_case
{
/** @var \phpbb\path_helper */
protected $path_helper;
protected $phpbb_root_path = '';
@ -42,7 +43,7 @@ class phpbb_path_helper_test extends phpbb_test_case
*/
public function set_phpbb_root_path()
{
$this->phpbb_root_path = dirname(__FILE__) . './../../phpBB/';
$this->phpbb_root_path = dirname(__FILE__) . '/../../phpBB/';
}
public function test_get_web_root_path()
@ -81,7 +82,7 @@ class phpbb_path_helper_test extends phpbb_test_case
*/
public function test_basic_update_web_root_path($input, $expected)
{
$this->assertEquals($expected, $this->path_helper->update_web_root_path($input, $symfony_request));
$this->assertEquals($expected, $this->path_helper->update_web_root_path($input));
}
public function update_web_root_path_data()
@ -135,7 +136,7 @@ class phpbb_path_helper_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())