[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/tests/tests/api/ -> output.php (summary)

(no description)

File Size: 104 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

API_Output_Tests:: (8 methods):
  tearDown()
  test_output_return_or_echo()
  get_content_header()
  get_status_header()
  API_type()
  test_output_content_headers()
  status_code()
  test_output_status_headers()


Class: API_Output_Tests  - X-Ref

Main API Output tests (content and headers sent)

tearDown()   X-Ref
No description

test_output_return_or_echo()   X-Ref
Check that yourls_api_output selectively echoes or returns content

since: 0.1

get_content_header( $args )   X-Ref
No description

get_status_header( $args )   X-Ref
No description

API_type()   X-Ref
Provide API output mode and the associated expected content-type header


test_output_content_headers( $type, $expected_header )   X-Ref
Check that yourls_api_output selectively sends expected content-type headers

since: 0.1

status_code()   X-Ref
Provide mocked API output and the expected status codes


test_output_status_headers( $content, $expected_status )   X-Ref
Check that yourls_api_output status header

since: 0.1



Generated: Wed Sep 28 05:10:02 2022 Cross-referenced by PHPXref 0.7.1