[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/t/ -> test_urls.php (summary)

(no description)

File Size: 135 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 t/init.php

Defines 1 class

GP_Test_Urls:: (31 methods):
  setUp()
  test_gp_url_should_just_add_simple_path_string_if_query_is_missing()
  test_gp_url_should_not_add_query_string_if_query_is_empty_string()
  test_gp_url_should_not_add_query_string_if_query_is_empty_array()
  test_gp_url_should_properly_add_query_string_if_path_is_empty()
  test_gp_url_should_add_question_mark_if_query_string_does_not_have_one()
  test_gp_url_should_expand_query_array()
  test_gp_url_should_add_ampersand_if_path_is_empty_and_query_array_has_more_than_one_value()
  test_gp_url_should_add_ampersand_if_query_array_has_more_than_one_value()
  test_gp_url_should_not_add_double_slash_if_path_starts_with_slash()
  test_gp_url_should_urlencode_query_var_values()
  test_gp_url_join_should_return_the_string_if_single_string_without_slashes_is_passed()
  test_gp_url_join_should_join_with_slash_two_strings_without_slashes()
  test_gp_url_join_should_include_only_one_slash_if_first_string_ends_with_slash_and_next_begins_with_slash()
  test_gp_url_join_should_discard_multiple_slashes_in_the_end_of_component()
  test_gp_url_join_should_discard_multiple_slashes_in_the_beginning_of_component()
  test_gp_url_join_should_not_discard_slash_if_the_whole_first_component_is_slash()
  test_gp_url_join_should_not_discard_slash_if_the_whole_last_component_is_slash()
  test_gp_url_join_should_return_only_one_slash_if_the_only_component_is_a_slash()
  test_gp_url_join_should_return_only_one_slash_if_all_components_are_slashes()
  test_gp_url_join_should_return_only_one_slash_if_all_components_are_multiple_slashes()
  test_gp_url_join_should_skip_empty_components()
  test_gp_url_join_should_skip_empty_components_in_the_beginning()
  test_gp_url_join_should_skip_empty_components_in_the_end()
  test_gp_url_join_should_accept_array_component_with_one_element_and_return_this_element()
  test_gp_url_join_should_join_array_component_values_as_if_they_were_given_as_different_arguments()
  test_gp_url_join_should_flatten_nested_arrays()
  test_gp_url_join_should_return_empty_string_with_nested_empty_arrays()
  test_gp_url_join_should_not_break_http()
  test_gp_url_project_should_join_its_arguments()
  test_gp_url_project_should_join_its_array_arguments()


Class: GP_Test_Urls  - X-Ref

setUp()   X-Ref
No description

test_gp_url_should_just_add_simple_path_string_if_query_is_missing()   X-Ref
No description

test_gp_url_should_not_add_query_string_if_query_is_empty_string()   X-Ref
No description

test_gp_url_should_not_add_query_string_if_query_is_empty_array()   X-Ref
No description

test_gp_url_should_properly_add_query_string_if_path_is_empty()   X-Ref
No description

test_gp_url_should_add_question_mark_if_query_string_does_not_have_one()   X-Ref
No description

test_gp_url_should_expand_query_array()   X-Ref
No description

test_gp_url_should_add_ampersand_if_path_is_empty_and_query_array_has_more_than_one_value()   X-Ref
No description

test_gp_url_should_add_ampersand_if_query_array_has_more_than_one_value()   X-Ref
No description

test_gp_url_should_not_add_double_slash_if_path_starts_with_slash()   X-Ref
No description

test_gp_url_should_urlencode_query_var_values()   X-Ref
No description

test_gp_url_join_should_return_the_string_if_single_string_without_slashes_is_passed()   X-Ref
No description

test_gp_url_join_should_join_with_slash_two_strings_without_slashes()   X-Ref
No description

test_gp_url_join_should_include_only_one_slash_if_first_string_ends_with_slash_and_next_begins_with_slash()   X-Ref
No description

test_gp_url_join_should_discard_multiple_slashes_in_the_end_of_component()   X-Ref
No description

test_gp_url_join_should_discard_multiple_slashes_in_the_beginning_of_component()   X-Ref
No description

test_gp_url_join_should_not_discard_slash_if_the_whole_first_component_is_slash()   X-Ref
No description

test_gp_url_join_should_not_discard_slash_if_the_whole_last_component_is_slash()   X-Ref
No description

test_gp_url_join_should_return_only_one_slash_if_the_only_component_is_a_slash()   X-Ref
No description

test_gp_url_join_should_return_only_one_slash_if_all_components_are_slashes()   X-Ref
No description

test_gp_url_join_should_return_only_one_slash_if_all_components_are_multiple_slashes()   X-Ref
No description

test_gp_url_join_should_skip_empty_components()   X-Ref
No description

test_gp_url_join_should_skip_empty_components_in_the_beginning()   X-Ref
No description

test_gp_url_join_should_skip_empty_components_in_the_end()   X-Ref
No description

test_gp_url_join_should_accept_array_component_with_one_element_and_return_this_element()   X-Ref
No description

test_gp_url_join_should_join_array_component_values_as_if_they_were_given_as_different_arguments()   X-Ref
No description

test_gp_url_join_should_flatten_nested_arrays()   X-Ref
No description

test_gp_url_join_should_return_empty_string_with_nested_empty_arrays()   X-Ref
No description

test_gp_url_join_should_not_break_http()   X-Ref
No description

test_gp_url_project_should_join_its_arguments()   X-Ref
No description

test_gp_url_project_should_join_its_array_arguments()   X-Ref
No description



Generated: Thu May 24 03:59:35 2012 Hosted by follow the white rabbit.