See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 39 and 401]
This file contains unit test related to xAPI library.
Copyright: | 2020 Ferran Recio |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 588 lines (22 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
statement_test:: (14 methods):
get_valid_item()
test_create()
create_provider()
test_create_from_data()
test_add_attachment()
test_add_attachment_from_data()
test_invalid_gets()
invalid_gets_provider()
test_invalid_get_user()
test_invalid_get_group()
test_invalid_get_activity_id()
test_invalid_data()
invalid_data_provider()
test_minify()
Class: statement_test - X-Ref
Contains test cases for testing statement class.get_valid_item(string $itemname) X-Ref |
Returns a valid item for a specific attribute. param: string $itemname statement item name return: item the resulting item |
test_create(bool $useagent, array $extras, array $extravalues) X-Ref |
Test statement creation. param: bool $useagent if use agent as actor (or group if false) param: array $extras extra item elements param: array $extravalues extra string values |
create_provider() X-Ref |
Data provider for the test_create and test_create_from_data tests. return: array |
test_create_from_data(bool $useagent, array $extras, array $extravalues) X-Ref |
Test statement creation from xAPI statement data. param: bool $useagent if use agent as actor (or group if false) param: array $extras extra item elements param: array $extravalues extra string values |
test_add_attachment() X-Ref |
Test adding attachments to statement. |
test_add_attachment_from_data() X-Ref |
Test adding attachments to statement. |
test_invalid_gets(string $method, bool $exception) X-Ref |
Test all getters into a not set statement. param: string $method the method to test param: bool $exception if an exception is expected |
invalid_gets_provider() X-Ref |
Data provider for the text_invalid_gets. return: array |
test_invalid_get_user() X-Ref |
Try to get a user from a group statement. |
test_invalid_get_group() X-Ref |
Try to get a group from an agent statement. |
test_invalid_get_activity_id() X-Ref |
Try to get activity Id from a statement with agent object. |
test_invalid_data(bool $useuser, bool $userverb, bool $useobject) X-Ref |
Test for invalid structures. param: bool $useuser if use user into statement param: bool $userverb if use verb into statement param: bool $useobject if use object into statement |
invalid_data_provider() X-Ref |
Data provider for the test_invalid_data tests. return: array |
test_minify() X-Ref |
Test minify statement. |