Actualización

This commit is contained in:
Xes
2025-04-10 12:24:57 +02:00
parent 8969cc929d
commit 45420b6f0d
39760 changed files with 4303286 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
/composer.lock
/vendor

View File

@@ -0,0 +1,30 @@
sudo: false
language: php
cache:
directories:
- $HOME/.composer/cache/files
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
fast_finish: true
include:
- php: 5.3
env: deps="low"
before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi
- composer self-update
install:
- if [[ "$deps" = "low" ]]; then composer update --prefer-lowest; else composer install; fi
script:
- php validate.php

View File

@@ -0,0 +1,60 @@
CHANGELOG
=========
2.0.0
-----
* Attachment fixtures are now objects containing up to two keys. `metadata`
contains the JSON encoded attachment while `content`, if present, denotes
the raw attachment content.
1.0.0
-----
This first stable release contains all the official conformance test fixtures
provided by the maintainers of the xAPI spec as JSON encoded files and provides
ways to access them through a PHP API.
This release is equivalent to the 0.2 release series and is considered to
be stable.
0.2.3
-----
* Added a `Statement` fixture defining all properties of a statement.
* Added fixtures for statement attachments.
* Added fixtures for activity definition extensions.
* Added fixtures for activity interaction definitions and interaction components.
* Added missing fixtures for `Account`, `Activity`, `Actor`, `Context`,
`ContextActivities`, `Extensions`, `Result`, `SubStatement`, `StatementReference`
and `Verb`.
* Removed dependency on the `php-xapi/model` package. The classes from that
package are never used.
0.2.2
-----
Synchronized the list of statement fixtures with the test cases of the
`php-xapi/test-fixtures` package.
0.2.1
-----
Do not block the installation of release `0.4` of the `php-xapi/model` package.
0.2.0
-----
Switched to make use of the official conformance test fixtures that are provided
by the maintainers of the xAPI spec.
0.1.0
-----
This is the first release containing JSON test fixtures for actors (agents and
groups), verbs, documents, activities,statements, and statement results.

View File

@@ -0,0 +1,19 @@
Copyright (c) 2014-2016 Christian Flothmann
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@@ -0,0 +1,4 @@
Experience API JSON Test Fixtures
=================================
Package providing JSON encoded test data fixtures for the xAPI packages.

View File

@@ -0,0 +1,9 @@
UPGRADE
=======
Upgrading from 1.x to 2.0
-------------------------
* Attachment fixtures are now objects containing up to two keys. `metadata`
contains the JSON encoded attachment while `content`, if present, denotes
the raw attachment content.

View File

@@ -0,0 +1,27 @@
{
"name": "php-xapi/json-test-fixtures",
"type": "library",
"description": "common JSON test fixtures for Experience API related packages",
"keywords": ["xAPI", "Experience API", "Tin Can API", "fixtures", "data fixtures", "test fixtures", "JSON"],
"homepage": "https://github.com/php-xapi/json-test-fixtures",
"license": "MIT",
"authors": [
{
"name": "Christian Flothmann",
"homepage": "https://github.com/xabbuh"
}
],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"psr-4": {
"XApi\\Fixtures\\Json\\": "src/"
}
},
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
}
}
}

View File

@@ -0,0 +1,4 @@
{
"name": "test",
"homePage": "https://tincanapi.com"
}

View File

@@ -0,0 +1,4 @@
{
"homePage": "https://tincanapi.com/OAuth/Token",
"name": "oauth_consumer_x75db"
}

View File

@@ -0,0 +1,4 @@
{
"name": "forQuery",
"homePage": "https://tincanapi.com"
}

View File

@@ -0,0 +1,4 @@
{
"name": "test",
"homePage": "https://tincanapi.com"
}

View File

@@ -0,0 +1,6 @@
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity",
"definition": {
}
}

View File

@@ -0,0 +1,8 @@
{
"id": "http://tincanapi.com/conformancetest/activityid/forQuery",
"definition": {
"name": {
"en-US": "for query"
}
}
}

View File

@@ -0,0 +1,3 @@
{
"id": "http://tincanapi.com/conformancetest/activityid"
}

View File

@@ -0,0 +1,5 @@
{
"id": "http://tincanapi.com/conformancetest/activityid",
"definition": {
}
}

View File

@@ -0,0 +1,6 @@
{
"id": "http://tincanapi.com/conformancetest/activityid",
"definition": {
},
"objectType": "Activity"
}

View File

@@ -0,0 +1,4 @@
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}

View File

@@ -0,0 +1,4 @@
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}

View File

@@ -0,0 +1,6 @@
{
"account": {
"name": "test",
"homePage": "https://tincanapi.com"
}
}

View File

@@ -0,0 +1,7 @@
{
"account": {
"name": "test",
"homePage": "https://tincanapi.com"
},
"objectType": "Agent"
}

View File

@@ -0,0 +1,13 @@
{
"objectType": "Group",
"member": [
{
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}
],
"account": {
"name": "test",
"homePage": "https://tincanapi.com"
}
}

View File

@@ -0,0 +1,8 @@
{
"objectType": "Group",
"account": {
"name": "test",
"homePage": "https://tincanapi.com"
},
"name": "test group"
}

View File

@@ -0,0 +1,7 @@
{
"account": {
"name": "test",
"homePage": "https://tincanapi.com"
},
"objectType": "Group"
}

View File

@@ -0,0 +1,14 @@
{
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com",
"name": "test group",
"member": [
{
"account": {
"name": "test",
"homePage": "https://tincanapi.com"
},
"objectType": "Agent"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com",
"name": "test group",
"member": [
{
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com",
"name": "test group",
"member": [
{
"mbox_sha1sum": "db77b9104b531ecbb0b967f6942549d0ba80fda1",
"objectType": "Agent"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com",
"name": "test group",
"member": [
{
"openid": "http://openid.tincanapi.com",
"objectType": "Agent"
}
]
}

View File

@@ -0,0 +1,15 @@
{
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com",
"name": "test group",
"member": [
{
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
},
{
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com",
"name": "test group",
"member": [
{
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"account": {
"name": "forQuery",
"homePage": "https://tincanapi.com"
}
}

View File

@@ -0,0 +1,3 @@
{
"mbox": "mailto:conformancetest+query@tincanapi.com"
}

View File

@@ -0,0 +1,3 @@
{
"mbox_sha1sum": "6954e807cfbfc5b375d185de32f05de269f93d6f"
}

View File

@@ -0,0 +1,3 @@
{
"openid": "http://openid.tincanapi.com/query"
}

View File

@@ -0,0 +1,3 @@
{
"mbox": "mailto:conformancetest@tincanapi.com"
}

View File

@@ -0,0 +1,4 @@
{
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}

View File

@@ -0,0 +1,10 @@
{
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com",
"member": [
{
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com",
"name": "test group"
}

View File

@@ -0,0 +1,4 @@
{
"mbox": "mailto:conformancetest-group@tincanapi.com",
"objectType": "Group"
}

View File

@@ -0,0 +1,3 @@
{
"mbox_sha1sum": "db77b9104b531ecbb0b967f6942549d0ba80fda1"
}

View File

@@ -0,0 +1,4 @@
{
"mbox_sha1sum": "db77b9104b531ecbb0b967f6942549d0ba80fda1",
"objectType": "Agent"
}

View File

@@ -0,0 +1,10 @@
{
"objectType": "Group",
"member": [
{
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}
],
"mbox_sha1sum": "4e271041e78101311fb37284ef1a1d35c3f1db35"
}

View File

@@ -0,0 +1,5 @@
{
"objectType": "Group",
"mbox_sha1sum": "4e271041e78101311fb37284ef1a1d35c3f1db35",
"name": "test group"
}

View File

@@ -0,0 +1,4 @@
{
"mbox_sha1sum": "4e271041e78101311fb37284ef1a1d35c3f1db35",
"objectType": "Group"
}

View File

@@ -0,0 +1,3 @@
{
"openid": "http://openid.tincanapi.com"
}

View File

@@ -0,0 +1,4 @@
{
"openid": "http://openid.tincanapi.com",
"objectType": "Agent"
}

View File

@@ -0,0 +1,10 @@
{
"objectType": "Group",
"member": [
{
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}
],
"openid": "http://group.openid.tincanapi.com"
}

View File

@@ -0,0 +1,5 @@
{
"objectType": "Group",
"openid": "http://group.openid.tincanapi.com",
"name": "test group"
}

View File

@@ -0,0 +1,4 @@
{
"openid": "http://group.openid.tincanapi.com",
"objectType": "Group"
}

View File

@@ -0,0 +1,3 @@
{
"mbox": "mailto:conformancetest@tincanapi.com"
}

View File

@@ -0,0 +1,4 @@
{
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}

View File

@@ -0,0 +1,4 @@
{
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com"
}

View File

@@ -0,0 +1,12 @@
{
"metadata": {
"usageType": "http://id.tincanapi.com/attachment/supporting_media",
"display": {
"en-US": "JSON attachment"
},
"contentType": "application/json",
"length": 60,
"sha2": "f4135c31e2710764604195dfe4e225884d8108467cc21670803e384b80df88ee"
},
"content": "{\"propertyA\":\"value1\",\"propertyB\":\"value2\",\"propertyC\":true}"
}

View File

@@ -0,0 +1,12 @@
{
"metadata": {
"usageType": "http://id.tincanapi.com/attachment/supporting_media",
"display": {
"en-US": "FileUrl Only attachment"
},
"contentType": "application/octet-stream",
"length": 65556,
"sha2": "d14f1580a2cebb6f8d4a8a2fc0d13c67f970e84f8d15677a93ae95c9080df899",
"fileUrl": "http://tincanapi.com/conformancetest/attachment/fileUrlOnly"
}
}

View File

@@ -0,0 +1,12 @@
{
"metadata": {
"usageType": "http://id.tincanapi.com/attachment/supporting_media",
"display": {
"en-US": "Text attachment"
},
"contentType": "text/plain",
"length": 18,
"sha2": "bd1a58265d96a3d1981710dab8b1e1ed04a8d7557ea53ab0cf7b44c04fd01545"
},
"content": "some text content"
}

View File

@@ -0,0 +1,8 @@
{
"instructor": {
"account": {
"name": "test",
"homePage": "https://tincanapi.com"
}
}
}

View File

@@ -0,0 +1,9 @@
{
"instructor": {
"account": {
"name": "test",
"homePage": "https://tincanapi.com"
},
"objectType": "Agent"
}
}

View File

@@ -0,0 +1,47 @@
{
"registration": "16fd2706-8baf-433b-82eb-8c7fada847da",
"instructor": {
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
},
"team": {
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com"
},
"contextActivities": {
"category": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
],
"parent": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
],
"grouping": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
],
"other": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
]
},
"revision": "test",
"platform": "test",
"language": "en-US",
"statement": {
"objectType": "StatementRef",
"id": "16fd2706-8baf-433b-82eb-8c7fada847da"
},
"extensions": {
"http://id.tincanapi.com/extension/topic": "Conformance Testing"
}
}

View File

@@ -0,0 +1,28 @@
{
"contextActivities": {
"category": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
],
"parent": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
],
"grouping": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
],
"other": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
]
}
}

View File

@@ -0,0 +1,2 @@
{
}

View File

@@ -0,0 +1,4 @@
{
"contextActivities": {
}
}

View File

@@ -0,0 +1,8 @@
{
"contextActivities": {
"category": [],
"parent": [],
"grouping": [],
"other": []
}
}

View File

@@ -0,0 +1,4 @@
{
"extensions": {
}
}

View File

@@ -0,0 +1,5 @@
{
"extensions": {
"http://id.tincanapi.com/extension/topic": "Conformance Testing"
}
}

View File

@@ -0,0 +1,5 @@
{
"instructor": {
"mbox": "mailto:conformancetest@tincanapi.com"
}
}

View File

@@ -0,0 +1,6 @@
{
"instructor": {
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}
}

View File

@@ -0,0 +1,5 @@
{
"instructor": {
"mbox_sha1sum": "db77b9104b531ecbb0b967f6942549d0ba80fda1"
}
}

View File

@@ -0,0 +1,6 @@
{
"instructor": {
"mbox_sha1sum": "db77b9104b531ecbb0b967f6942549d0ba80fda1",
"objectType": "Agent"
}
}

View File

@@ -0,0 +1,5 @@
{
"instructor": {
"openid": "http://openid.tincanapi.com"
}
}

View File

@@ -0,0 +1,6 @@
{
"instructor": {
"openid": "http://openid.tincanapi.com",
"objectType": "Agent"
}
}

View File

@@ -0,0 +1,6 @@
{
"statement": {
"objectType": "StatementRef",
"id": "16fd2706-8baf-433b-82eb-8c7fada847da"
}
}

View File

@@ -0,0 +1,2 @@
{
}

View File

@@ -0,0 +1,6 @@
{
"instructor": {
"mbox": "mailto:conformancetest@tincanapi.com",
"objectType": "Agent"
}
}

View File

@@ -0,0 +1,6 @@
{
"team": {
"objectType": "Group",
"mbox": "mailto:conformancetest-group@tincanapi.com"
}
}

View File

@@ -0,0 +1,26 @@
{
"category": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
],
"parent": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
],
"grouping": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
],
"other": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"category": [],
"parent": [],
"grouping": [],
"other": []
}

View File

@@ -0,0 +1,8 @@
{
"category": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
]
}

View File

@@ -0,0 +1,2 @@
{
}

View File

@@ -0,0 +1,8 @@
{
"grouping": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
]
}

View File

@@ -0,0 +1,8 @@
{
"other": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
]
}

View File

@@ -0,0 +1,8 @@
{
"parent": [
{
"id": "http://tincanapi.com/conformancetest/activityid",
"objectType": "Activity"
}
]
}

View File

@@ -0,0 +1,2 @@
{
}

View File

@@ -0,0 +1,13 @@
{
"name": {
"en-US": "test"
},
"description": {
"en-US": "test"
},
"type": "http://id.tincanapi.com/activitytype/unit-test",
"moreInfo": "https://github.com/adlnet/xAPI_LRS_Test",
"extensions": {
"http://id.tincanapi.com/extension/topic": "Conformance Testing"
}
}

View File

@@ -0,0 +1,8 @@
{
"interactionType": "choice",
"choices": [
{
"id": "test"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"description": {
"en-US": "test"
}
}

View File

@@ -0,0 +1,2 @@
{
}

View File

@@ -0,0 +1,4 @@
{
"extensions": {
}
}

View File

@@ -0,0 +1,10 @@
{
"extensions": {
"http://id.tincanapi.com/extension/topic": "Conformance Testing",
"http://id.tincanapi.com/extension/color": {
"model": "RGB",
"value": "#FFFFFF"
},
"http://id.tincanapi.com/extension/starting-position": 1
}
}

View File

@@ -0,0 +1,3 @@
{
"interactionType": "fill-in"
}

View File

@@ -0,0 +1,5 @@
{
"name": {
"en-US": "for query"
}
}

View File

@@ -0,0 +1,8 @@
{
"interactionType": "likert",
"scale": [
{
"id": "test"
}
]
}

View File

@@ -0,0 +1,13 @@
{
"interactionType": "matching",
"source": [
{
"id": "test"
}
],
"target": [
{
"id": "test"
}
]
}

View File

@@ -0,0 +1,3 @@
{
"moreInfo": "https://github.com/adlnet/xAPI_LRS_Test"
}

View File

@@ -0,0 +1,5 @@
{
"name": {
"en-US": "test"
}
}

View File

@@ -0,0 +1,3 @@
{
"interactionType": "numeric"
}

View File

@@ -0,0 +1,3 @@
{
"interactionType": "other"
}

View File

@@ -0,0 +1,4 @@
{
"interactionType": "other",
"correctResponsesPattern": ["test"]
}

View File

@@ -0,0 +1,8 @@
{
"interactionType": "performance",
"steps": [
{
"id": "test"
}
]
}

View File

@@ -0,0 +1,8 @@
{
"interactionType": "sequencing",
"choices": [
{
"id": "test"
}
]
}

View File

@@ -0,0 +1,3 @@
{
"interactionType": "true-false"
}

View File

@@ -0,0 +1,3 @@
{
"type": "http://id.tincanapi.com/activitytype/unit-test"
}

Some files were not shown because too many files have changed in this diff Show More