From 28c2c975b118016d07212ed8e7c22ff280309f82 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Sat, 8 Feb 2014 04:27:48 +0200 Subject: [ci skip] Add return types to library docs --- user_guide_src/source/libraries/unit_testing.rst | 33 +++++++++++++----------- 1 file changed, 18 insertions(+), 15 deletions(-) (limited to 'user_guide_src/source/libraries/unit_testing.rst') diff --git a/user_guide_src/source/libraries/unit_testing.rst b/user_guide_src/source/libraries/unit_testing.rst index 2d4a27a25..0bc860f61 100644 --- a/user_guide_src/source/libraries/unit_testing.rst +++ b/user_guide_src/source/libraries/unit_testing.rst @@ -193,45 +193,48 @@ Class Reference .. method:: run($test[, $expected = TRUE[, $test_name = 'undefined'[, $notes = '']]]) - :param mixed $test: Test data - :param mixed $expected: Expected result - :param string $test_name: Test name - :param string $notes: Any notes to be attached to the test - :returns: string + :param mixed $test: Test data + :param mixed $expected: Expected result + :param string $test_name: Test name + :param string $notes: Any notes to be attached to the test + :returns: Test report + :rtype: string Runs unit tests. .. method:: report([$result = array()]) - :param array $result: Array containing tests results - :returns: string + :param array $result: Array containing tests results + :returns: Test report + :rtype: string Generates a report about already complete tests. .. method:: use_strict([$state = TRUE]) - :param bool $state: Strict state flag - :returns: void + :param bool $state: Strict state flag + :rtype: void Enables/disables strict type comparison in tests. .. method:: active([$state = TRUE]) - :param bool $state: Whether to enable testing - :returns: void + :param bool $state: Whether to enable testing + :rtype: void Enables/disables unit testing. .. method:: result([$results = array()]) - :param array $results: Tests results list - :returns: array + :param array $results: Tests results list + :returns: Array of raw result data + :rtype: array Returns raw tests results data. .. method:: set_template($template) - :param string $template: Test result template - :returns: void + :param string $template: Test result template + :rtype: void Sets the template for displaying tests results. \ No newline at end of file -- cgit v1.2.3-24-g4f1b