Skip to content

Commit ad0d663

Browse files
committed
initial set of JSON encoded xAPI test fixtures
0 parents  commit ad0d663

28 files changed

+731
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/composer.lock
2+
/vendor

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CHANGELOG
2+
=========
3+
4+
0.1.0
5+
-----
6+
7+
This is the first release containing JSON test fixtures for actors (agents and
8+
groups), verbs, documents, activities,statements, and statement results.

LICENSE

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

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Experience API JSON Test Fixtures
2+
=================================
3+
4+
Package providing JSON encoded test data fixtures for the xAPI packages.

composer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "php-xapi/json-test-fixtures",
3+
"type": "library",
4+
"description": "common JSON test fixtures for Experience API related packages",
5+
"keywords": ["xAPI", "Experience API", "Tin Can API", "fixtures", "data fixtures", "test fixtures", "JSON"],
6+
"homepage": "https://github.com/php-xapi/json-test-fixtures",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "Christian Flothmann",
11+
"homepage": "https://github.com/xabbuh"
12+
}
13+
],
14+
"require": {
15+
"php": ">=5.3.0",
16+
"php-xapi/model": "^0.2.0"
17+
},
18+
"autoload": {
19+
"psr-4": {
20+
"XApi\\Fixtures\\Json\\": "src/"
21+
}
22+
},
23+
"extra": {
24+
"branch-alias": {
25+
"dev-master": "0.1.x-dev"
26+
}
27+
}
28+
}

data/activity.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"id": "http://www.example.co.uk/exampleactivity",
3+
"definition": {
4+
"name": {
5+
"en-GB": "example activity",
6+
"en-US": "example activity"
7+
},
8+
"description": {
9+
"en-GB": "An example of an activity",
10+
"en-US": "An example of an activity"
11+
},
12+
"type": "http://www.example.co.uk/types/exampleactivitytype"
13+
},
14+
"objectType": "Activity"
15+
}

data/agent.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "Christian",
3+
"mbox": "mailto:[email protected]",
4+
"objectType": "Agent"
5+
}

data/agent_without_object_type.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "Christian",
3+
"mbox": "mailto:[email protected]"
4+
}

data/anonymous_group.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Anonymous Group",
3+
"objectType": "Group",
4+
"member": [
5+
{
6+
"name": "Andrew Downes",
7+
"mbox": "mailto:[email protected]",
8+
"objectType": "Agent"
9+
},
10+
{
11+
"name": "Aaron Silvers",
12+
"openid": "aaron.openid.example.org",
13+
"objectType": "Agent"
14+
}
15+
]
16+
}

data/document.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"x": "foo",
3+
"y": "bar"
4+
}

0 commit comments

Comments
 (0)