Skip to content

Commit 551ef2f

Browse files
committed
add statement reference JSON fixtures
1 parent 2932d42 commit 551ef2f

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
CHANGELOG
22
=========
33

4+
* Added missing test fixtures for the `StatementReference` class.
5+
46
0.2.2
57
-----
68

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"objectType": "StatementRef",
3+
"id": "16fd2706-8baf-433b-82eb-8c7fada847da"
4+
}

data/StatementReference/typical.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"objectType": "StatementRef",
3+
"id": "16fd2706-8baf-433b-82eb-8c7fada847da"
4+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the xAPI package.
5+
*
6+
* (c) Christian Flothmann <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace XApi\Fixtures\Json;
13+
14+
/**
15+
* JSON encoded xAPI statement reference fixtures.
16+
*
17+
* These fixtures are borrowed from the
18+
* {@link https://github.com/adlnet/xAPI_LRS_Test Experience API Learning Record Store Conformance Test} package.
19+
*/
20+
class StatementReferenceJsonFixtures extends JsonFixtures
21+
{
22+
const DIRECTORY = 'StatementReference';
23+
24+
public static function getTypicalStatementReference()
25+
{
26+
return self::load('typical');
27+
}
28+
29+
public static function getAllPropertiesStatementReference()
30+
{
31+
return self::load('all_properties');
32+
}
33+
}

0 commit comments

Comments
 (0)