EllisLab/CodeIgniter — pull request #1170 by tiyowan (2012-03-12 07:31:28+00:00)
Title: Add unit tests for path helper

[![Build Status](https://secure.travis-ci.org/tiyowan/CodeIgniter.png)](http://travis-ci.org/tiyowan/CodeIgniter)

We have got a minor issue here. The tests fail because I'm testing according to this documentation: http://codeigniter.com/user_guide/helpers/path_helper.html

According to the docs:
$directory = '/etc/passwd';
echo set_realpath($directory);
// returns "/etc/passwd"

However, actually set_realpath returns "/etc/passwd/"

We have two options:
1. Change docs and unit tests to reflect the correct return value. (with slash)
2. Change set_realpath() to operate according to the docs and unit tests

Let me know what needs to be done so I can amend this commit if necessary.