BMLT Satellite Driver
|
A unit test harness for the bmlt_satellite_controller class. *. More...
Go to the source code of this file.
Functions | |
u_test_get_test_server_uri () | |
Returns the URI for the test server. The default is the public trunk test server * and you can specify a local server if running on a localhost machine. *
| |
u_test_apply_root_uri (&$in_test_subject, $in_root_server_uri) | |
Apply the URI, and see if the server is there (can also test for bad URI) * *. More... | |
u_test_get_standard_server_parameters (&$in_test_subject, $in_root_server_uri) | |
Apply the URI, and see if the server is there (can also test for bad URI) * *. More... | |
u_test_draw_service_body ($in_service_body_array) | |
Displays Service bodies in a hierarchical fashion. * *. More... | |
u_test_server_root_uri (&$in_test_subject, $in_uri) | |
Tests the various ways the class deals with the root URI . This will also * exercise the cURL calling and server communication. * *. More... | |
u_test_server_parameters_outgoing (&$in_test_subject) | |
Tests the outgoing parameter storage. * *. More... | |
u_test_basic_search ($in_root_server_uri) | |
Performs a basic meeting search * *. More... | |
u_test_complex_search ( $in_root_server_uri, &$serialized_transaction) | |
Performs a more complex meeting search * *. More... | |
u_test_filtered_search ($in_root_server_uri) | |
Performs a more complex meeting search, but only gets a couple of the fields. * *. More... | |
u_test_serialized_search ( $in_test_subject, $serialized_transaction) | |
Performs a more complex meeting search * *. More... | |
u_test_draw_meeting ($in_meeting_array) | |
Displays one meeting in a hierarchical fashion. * *. More... | |
u_test_changes ($in_root_server_uri) | |
Queries the server for changes. *
| |
u_test () | |
Runs the unit tests. * *. More... | |
Variables | |
const | U_TEST_REMOTE_URI 'https://bmlt.app/trunk/main_server' |
This is the URI to resolve a test root server (remote). Default is the public trunk test (not stable). | |
const | U_TEST_LOCAL_URI 'http://bmlt-server.localhost' |
If running on localhost, you can specify a local root URI. Comment this out to always use remote. | |
const | U_TEST_MEETING_ID 734 |
This is an ID for a specific meeting (with some changes) for the meeting changes test. | |
A unit test harness for the bmlt_satellite_controller class. *.
Find out more at: https://bmlt.app
BMLT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
BMLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this code. If not, see http://www.gnu.org/licenses/.
Definition in file unit_test.php.
u_test | ( | ) |
Runs the unit tests. * *.
Definition at line 766 of file unit_test.php.
References u_test_basic_search(), u_test_changes(), u_test_complex_search(), u_test_filtered_search(), u_test_get_standard_server_parameters(), u_test_get_test_server_uri(), u_test_serialized_search(), u_test_server_parameters_outgoing(), and u_test_server_root_uri().
u_test_apply_root_uri | ( | & | $in_test_subject, |
$in_root_server_uri | |||
) |
Apply the URI, and see if the server is there (can also test for bad URI) * *.
$in_test_subject | The object to be tested. |
$in_root_server_uri | A string. The root server URI. |
Definition at line 80 of file unit_test.php.
Referenced by u_test_server_root_uri().
u_test_basic_search | ( | $in_root_server_uri | ) |
Performs a basic meeting search * *.
$in_root_server_uri | The root uri of the server to be searched. |
Definition at line 386 of file unit_test.php.
References u_test_draw_meeting().
Referenced by u_test().
u_test_changes | ( | $in_root_server_uri | ) |
Queries the server for changes. *
$in_root_server_uri | The server URI. |
Definition at line 693 of file unit_test.php.
References U_TEST_MEETING_ID.
Referenced by u_test().
u_test_complex_search | ( | $in_root_server_uri, | |
& | $serialized_transaction | ||
) |
Performs a more complex meeting search * *.
$in_root_server_uri | The root uri of the server to be searched. |
$serialized_transaction | This will hold the serialized transaction for another test. |
Definition at line 446 of file unit_test.php.
References u_test_draw_meeting().
Referenced by u_test().
u_test_draw_meeting | ( | $in_meeting_array | ) |
Displays one meeting in a hierarchical fashion. * *.
Definition at line 670 of file unit_test.php.
Referenced by u_test_basic_search(), u_test_complex_search(), and u_test_serialized_search().
u_test_draw_service_body | ( | $in_service_body_array | ) |
Displays Service bodies in a hierarchical fashion. * *.
Definition at line 179 of file unit_test.php.
Referenced by u_test_get_standard_server_parameters().
u_test_filtered_search | ( | $in_root_server_uri | ) |
Performs a more complex meeting search, but only gets a couple of the fields. * *.
$in_root_server_uri | The root uri of the server to be searched. |
Definition at line 532 of file unit_test.php.
Referenced by u_test().
u_test_get_standard_server_parameters | ( | & | $in_test_subject, |
$in_root_server_uri | |||
) |
Apply the URI, and see if the server is there (can also test for bad URI) * *.
$in_test_subject | The object to be tested. |
$in_root_server_uri | A string. The root server URI. |
Definition at line 106 of file unit_test.php.
References u_test_draw_service_body().
Referenced by u_test().
u_test_get_test_server_uri | ( | ) |
Returns the URI for the test server. The default is the public trunk test server * and you can specify a local server if running on a localhost machine. *
Definition at line 55 of file unit_test.php.
References U_TEST_LOCAL_URI, and U_TEST_REMOTE_URI.
Referenced by u_test().
u_test_serialized_search | ( | $in_test_subject, | |
$serialized_transaction | |||
) |
Performs a more complex meeting search * *.
$in_test_subject | An initialized object. |
$serialized_transaction | This has the serialized transaction for the test. |
Definition at line 614 of file unit_test.php.
References u_test_draw_meeting().
Referenced by u_test().
u_test_server_parameters_outgoing | ( | & | $in_test_subject | ) |
Tests the outgoing parameter storage. * *.
$in_test_subject | The object to be tested. |
Definition at line 277 of file unit_test.php.
Referenced by u_test().
u_test_server_root_uri | ( | & | $in_test_subject, |
$in_uri | |||
) |
Tests the various ways the class deals with the root URI . This will also * exercise the cURL calling and server communication. * *.
$in_test_subject | The object to be tested. |
$in_uri | The base URI. |
Definition at line 205 of file unit_test.php.
References u_test_apply_root_uri().
Referenced by u_test().