Tsugi

CartridgeFixtures
in package

Isolated Common Cartridge 1.2 fixtures for LMS interoperability testing.

Generates tiny .imscc packages (one question type each) so Canvas/Sakai failures can be attributed to a profile instead of a six-question blob.

Table of Contents

Methods

builders()  : array<string, callable>
lessonsDoc()  : object
mixedLessonsDoc()  : object
Mixed module used to verify heading + weblink + quiz positions.
writeAll()  : array<string, string>
Write every fixture into $dir. Returns map of stem => absolute path.
writeMixed()  : mixed
writeOne()  : string

Methods

builders()

public static builders() : array<string, callable>
Return values
array<string, callable>

mixedLessonsDoc()

Mixed module used to verify heading + weblink + quiz positions.

public static mixedLessonsDoc(Quiz1 $quiz) : object
Parameters
$quiz : Quiz1
Return values
object

writeAll()

Write every fixture into $dir. Returns map of stem => absolute path.

public static writeAll(mixed $dir) : array<string, string>
Parameters
$dir : mixed
Return values
array<string, string>

writeOne()

public static writeOne(mixed $dir, mixed $stem, Quiz1 $quiz[, array<string|int, mixed> $options = array() ]) : string
Parameters
$dir : mixed
$stem : mixed
$quiz : Quiz1
$options : array<string|int, mixed> = array()
Return values
string —

Absolute path of the .imscc file


        
On this page

Search results