public static function remove_words($words) { $words = is_array($words) ? $words : array($words); self::$remove_list = array_merge(self::$remove_list, $words); }
function test_remove_words() { $this->assertEquals('foo-bar', URLify::filter('foo bar')); URLify::remove_words(array('foo', 'bar')); $this->assertEquals('', URLify::filter('foo bar')); }