'foo-bar', '\ testing 12' => 'testing-12' ); foreach ($words as $in => $out) { $this->assertEquals($out, url_title($in, 'dash', TRUE)); } } // -------------------------------------------------------------------- public function test_url_title_extra_dashes() { $words = array( '_foo bar_' => 'foo_bar', '_What\'s wrong with CSS?_' => 'Whats_wrong_with_CSS' ); foreach ($words as $in => $out) { $this->assertEquals($out, url_title($in, 'underscore')); } } }