13 'scripts' =>
array(
'foo.js',
'bar.js' ),
14 'dependencies' =>
array(
'jquery',
'mediawiki' ),
15 'messages' =>
array(
'hello',
'world' ),
20 $jsonSummary = json_encode( $module->getDefinitionSummary( $context ) );
27 json_encode( $module->getDefinitionSummary( $context ) ),
28 'Instance is insignificant'
33 'dependencies' =>
array(
'mediawiki',
'jquery' ),
38 json_encode( $module->getDefinitionSummary( $context ) ),
39 'Order of dependencies is insignificant'
44 'messages' =>
array(
'world',
'hello' ),
49 json_encode( $module->getDefinitionSummary( $context ) ),
50 'Order of messages is insignificant'
55 'scripts' =>
array(
'bar.js',
'foo.js' ),
58 $this->assertNotEquals(
60 json_encode( $module->getDefinitionSummary( $context ) ),
61 'Order of scripts is significant'
67 $this->assertNotEquals(
69 json_encode( $module->getDefinitionSummary( $context ) ),
70 'Class is significant'