'../../fooz/baz/me.png', '/foo/bar/b', '/fooz/baz/me.png'
],
['baz/me.png', '/foo/bar/b', 'baz/me.png'
],
];
} public function testGetUserInfo() { $request =
new Request();
$server =
['PHP_AUTH_USER' => 'fabien'
];
$request->
initialize([],
[],
[],
[],
[],
$server);
$this->
assertEquals('fabien',
$request->
getUserInfo());
$server['PHP_AUTH_USER'
] = '0';
$request->
initialize([],
[],
[],
[],
[],
$server);
$this->
assertEquals('0',
$request->
getUserInfo());
$server['PHP_AUTH_PW'
] = '0';
$request->
initialize([],
[],
[],
[],
[],
$server);
$this->
assertEquals('0:0',
$request->
getUserInfo());
} public function testGetSchemeAndHttpHost() {