LGV_TZ_Lookup 1.4.2
Time zone lookup for PHP applications and HTTP clients
Loading...
Searching...
No Matches
LGV_TZ_Lookup_Test.php File Reference

Go to the source code of this file.

Functions

 test_server ()
 test_server_performance (array $nanoseconds, int|float $elapsed, int $peakMemory)
 Summarize request lookup timings and the PHP request's peak memory.

Function Documentation

◆ test_server()

test_server ( )

This is a basic tester. It runs a list of long/lat pairs through the server, and compares the results, with the expected ones.

Returns
: HTML of the results.

This is a simple generator for query strings, based on the given long/lat.

Returns
: the query string.

< The longitude to use

< The latitude to use

This runs the test, and returns the HTML for the results.

Returns
: the test result, as HTML.

< The title to display

< The longitude to use

< The latitude to use

< The expected result

< Lookup duration samples in nanoseconds.

Definition at line 59 of file LGV_TZ_Lookup_Test.php.

References $failures, $queryString, $test_locations_param_array, __CONFIG_FILE_, call_server(), and test_server().

Referenced by test_server().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_server_performance()

test_server_performance ( array $nanoseconds,
int|float $elapsed,
int $peakMemory )

Definition at line 33 of file LGV_TZ_Lookup_Test.php.

References test_server_performance().

Referenced by test_server_performance().

Here is the call graph for this function:
Here is the caller graph for this function: