blob: ea3fb0e4f0932f642fbaf58440f8a4e18cd505e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
require_once(BASEPATH.'helpers/url_helper.php');
class Url_helper_test extends CI_TestCase
{
public function test_url_title()
{
$words = array(
'foo bar /' => 'foo-bar',
'\ testing 12' => 'testing-12'
);
foreach ($words as $in => $out)
{
$this->assertEquals($out, url_title($in, 'dash', TRUE));
}
}
// --------------------------------------------------------------------
}
|