+
+ // uri_pickup_normalize_pathtofile()
+ $test_string = ' http://example.com/path/to/directory-accidentally-not-ended-with-slash ';
+ $results = uri_pickup_normalize_pathtofile(uri_pickup($test_string));
+ $this->assertEquals('/path/to/directory-accidentally-not-ended-with-slash',
+ $results[0]['pathtofile']);
+ $this->assertEquals(FALSE, isset($results[0]['path']));
+ $this->assertEquals(FALSE, isset($results[0]['file']));