/**
* Test splicing in paths.
*
* @return void
*/
public function testAddPaths()
{
$request = new CakeRequest('some/path');
$request->webroot = '/some/path/going/here/';
$result = $request->addPaths(array('random' => '/something', 'webroot' => '/', 'here' => '/', 'base' => '/base_dir'));
$this->assertSame($result, $request, 'Method did not return itself. %s');
$this->assertEquals('/', $request->webroot);
$this->assertEquals('/base_dir', $request->base);
$this->assertEquals('/', $request->here);
$this->assertFalse(isset($request->random));
}