====
github.com/progorker =_============
_ __ _ _ ___ __ _ ___ _ _| |_____ _ _
| '_ \ '_/ _ \/ _` / _ \ '_| / / -_) '_|
| .__/_| \___/\__, \___/_| |_\_\___|_|
=|_|===========|___/======================
API References of phpTestor
----- oOo -----
[procedure] api_testor_source_list
==========================================
-------|__/-------------------------
SYNTAX
------------------------------------
function \phptestor\api_testor_source_list( $p_token, $p_suite_id, $p_page_no, &$p_results, $p_beauty = false ) {
}
-------|__/-------------------------
USAGE
------------------------------------
$) $token = '_'; $username = 'mytestor'; $password = 'rzutomqahegpnyx'; \phptestor\api_testor_login( $token, $username, $password ); echo "\n", "Token: ", $token, "\n";
----------------------------
Token: 6e015e1fa62004fb0a36d90816587625
----------------------------
$) $suite_id = -1; $suite_code = 'phpTestorTrial'; \phptestor\api_testor_suite( $token, $suite_id, $suite_code ); echo "\n", "Suite ID: ", $suite_id, "\n";
----------------------------
Suite ID: 1
----------------------------
$) \phptestor\api_testor_clean( $token, $suite_id );
$) $data = '/bioogr/works/myTestorTrial'; $option_code = 'src_dir'; $option_remove = false; \phptestor\api_testor_option( $token, $suite_id, $data, $option_code, $option_remove ); $data = null; \phptestor\api_testor_option( $token, $suite_id, $data, $option_code, $option_remove ); echo "\n", "Option ($option_code): ", $data, "\n";
----------------------------
Option (src_dir): /bioogr/works/myTestorTrial
----------------------------
$) $data = '/tst/test_numbers.php'; $option_code = 'src:test_numbers'; $option_remove = false; \phptestor\api_testor_option( $token, $suite_id, $data, $option_code, $option_remove ); $data = null; \phptestor\api_testor_option( $token, $suite_id, $data, $option_code, $option_remove ); echo "\n", "Option ($option_code): ", $data, "\n";
----------------------------
Option (src:test_numbers): /tst/test_numbers.php
----------------------------
$) $page_no = 1; $results = ''; $beauty = false; \phptestor\api_testor_source_list( $token, $suite_id, $page_no, $results, $beauty ); echo "\n", "=====] Result: Source List [=====", "\n", $results, "\n";
----------------------------
=====] Result: Source List [=====
+--------------+------------------+-----------------------+--------------------------------------------------+
| rel_key | abs_key | rel_value | abs_value |
+--------------+------------------+-----------------------+--------------------------------------------------+
| test_numbers | src:test_numbers | /tst/test_numbers.php | /bioogr/works/myTestorTrial/tst/test_numbers.php |
+--------------+------------------+-----------------------+--------------------------------------------------+
----------------------------