Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 1127... Línea 1127...
1127
    /**
1127
    /**
1128
     * Test background images.
1128
     * Test background images.
1129
     * @param array $data the provider data.
1129
     * @param array $data the provider data.
1130
     * @dataProvider background_image_provider
1130
     * @dataProvider background_image_provider
1131
     */
1131
     */
1132
    public function test_background_image($data) {
1132
    public function test_background_image($data): void {
1133
        $this->markTestSkipped('Not yet supported!');
1133
        $this->markTestSkipped('Not yet supported!');
1134
        $output = new OutputFormat();
1134
        $output = new OutputFormat();
1135
        $this->assert_sample($data, $output);
1135
        $this->assert_sample($data, $output);
1136
    }
1136
    }
Línea 1137... Línea 1137...
1137
 
1137
 
1138
    /**
1138
    /**
1139
     * Test background position.
1139
     * Test background position.
1140
     * @param array $data the provider data.
1140
     * @param array $data the provider data.
1141
     * @dataProvider background_position_provider
1141
     * @dataProvider background_position_provider
1142
     */
1142
     */
1143
    public function test_background_position($data) {
1143
    public function test_background_position($data): void {
1144
        $output = new OutputFormat();
1144
        $output = new OutputFormat();
1145
        $output->set('SpaceAfterRuleName', '');
1145
        $output->set('SpaceAfterRuleName', '');
1146
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
1146
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
1147
        $this->assert_sample($data, $output);
1147
        $this->assert_sample($data, $output);
Línea 1150... Línea 1150...
1150
    /**
1150
    /**
1151
     * Test background.
1151
     * Test background.
1152
     * @param array $data the provider data.
1152
     * @param array $data the provider data.
1153
     * @dataProvider background_provider
1153
     * @dataProvider background_provider
1154
     */
1154
     */
1155
    public function test_background($data) {
1155
    public function test_background($data): void {
1156
        $output = new OutputFormat();
1156
        $output = new OutputFormat();
1157
        $output->set('SpaceAfterRuleName', ' ');
1157
        $output->set('SpaceAfterRuleName', ' ');
1158
        $output->set('SpaceBeforeRules', ' ');
1158
        $output->set('SpaceBeforeRules', ' ');
1159
        $output->set('SpaceAfterRules', ' ');
1159
        $output->set('SpaceAfterRules', ' ');
1160
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
1160
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
Línea 1164... Línea 1164...
1164
    /**
1164
    /**
1165
     * Test directives.
1165
     * Test directives.
1166
     * @param array $data the provider data.
1166
     * @param array $data the provider data.
1167
     * @dataProvider directives_provider
1167
     * @dataProvider directives_provider
1168
     */
1168
     */
1169
    public function test_directives($data) {
1169
    public function test_directives($data): void {
1170
        $output = new OutputFormat();
1170
        $output = new OutputFormat();
1171
        $output->set('SpaceAfterRuleName', '');
1171
        $output->set('SpaceAfterRuleName', '');
1172
        $output->set('SpaceBeforeRules', '');
1172
        $output->set('SpaceBeforeRules', '');
1173
        $output->set('SpaceAfterRules', '');
1173
        $output->set('SpaceAfterRules', '');
1174
        $output->set('SpaceBetweenRules', '');
1174
        $output->set('SpaceBetweenRules', '');
Línea 1180... Línea 1180...
1180
    /**
1180
    /**
1181
     * Test properties.
1181
     * Test properties.
1182
     * @param array $data the provider data.
1182
     * @param array $data the provider data.
1183
     * @dataProvider properties_provider
1183
     * @dataProvider properties_provider
1184
     */
1184
     */
1185
    public function test_properties($data) {
1185
    public function test_properties($data): void {
1186
        $output = new OutputFormat();
1186
        $output = new OutputFormat();
1187
        $output->set('SpaceAfterRuleName', '');
1187
        $output->set('SpaceAfterRuleName', '');
1188
        $output->set('SpaceBeforeRules', ' ');
1188
        $output->set('SpaceBeforeRules', ' ');
1189
        $output->set('SpaceAfterRules', ' ');
1189
        $output->set('SpaceAfterRules', ' ');
1190
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
1190
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
Línea 1194... Línea 1194...
1194
    /**
1194
    /**
1195
     * Test special.
1195
     * Test special.
1196
     * @param array $data the provider data.
1196
     * @param array $data the provider data.
1197
     * @dataProvider special_provider
1197
     * @dataProvider special_provider
1198
     */
1198
     */
1199
    public function test_special($data) {
1199
    public function test_special($data): void {
1200
        $this->markTestSkipped('Not yet supported!');
1200
        $this->markTestSkipped('Not yet supported!');
1201
        $output = new OutputFormat();
1201
        $output = new OutputFormat();
1202
        $output->set('SpaceBeforeRules', ' ');
1202
        $output->set('SpaceBeforeRules', ' ');
1203
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
1203
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
1204
        $this->assert_sample($data, $output);
1204
        $this->assert_sample($data, $output);
Línea 1207... Línea 1207...
1207
    /**
1207
    /**
1208
     * Test transform original.
1208
     * Test transform original.
1209
     * @param array $data the provider data.
1209
     * @param array $data the provider data.
1210
     * @dataProvider transform_origin_provider
1210
     * @dataProvider transform_origin_provider
1211
     */
1211
     */
1212
    public function test_transform_origin($data) {
1212
    public function test_transform_origin($data): void {
1213
        $output = new OutputFormat();
1213
        $output = new OutputFormat();
1214
        $output->set('SpaceAfterRuleName', '');
1214
        $output->set('SpaceAfterRuleName', '');
1215
        $output->set('SpaceBeforeRules', ' ');
1215
        $output->set('SpaceBeforeRules', ' ');
1216
        $output->set('SpaceAfterRules', ' ');
1216
        $output->set('SpaceAfterRules', ' ');
1217
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
1217
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
Línea 1222... Línea 1222...
1222
    /**
1222
    /**
1223
     * Test transform.
1223
     * Test transform.
1224
     * @param array $data the provider data.
1224
     * @param array $data the provider data.
1225
     * @dataProvider transforms_provider
1225
     * @dataProvider transforms_provider
1226
     */
1226
     */
1227
    public function test_transforms($data) {
1227
    public function test_transforms($data): void {
1228
        $this->markTestSkipped('Not yet supported!');
1228
        $this->markTestSkipped('Not yet supported!');
1229
        $output = new OutputFormat();
1229
        $output = new OutputFormat();
1230
        $output->set('SpaceBeforeRules', ' ');
1230
        $output->set('SpaceBeforeRules', ' ');
1231
        $output->set('SpaceAfterRules', ' ');
1231
        $output->set('SpaceAfterRules', ' ');
1232
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
1232
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
Línea 1236... Línea 1236...
1236
    /**
1236
    /**
1237
     * Test values n-syntax.
1237
     * Test values n-syntax.
1238
     * @param array $data the provider data.
1238
     * @param array $data the provider data.
1239
     * @dataProvider values_nsyntax_provider
1239
     * @dataProvider values_nsyntax_provider
1240
     */
1240
     */
1241
    public function test_values_nsyntax($data) {
1241
    public function test_values_nsyntax($data): void {
1242
        $output = new OutputFormat();
1242
        $output = new OutputFormat();
1243
        $output->set('SpaceBeforeRules', ' ');
1243
        $output->set('SpaceBeforeRules', ' ');
1244
        $output->set('SpaceAfterRules', ' ');
1244
        $output->set('SpaceAfterRules', ' ');
1245
        $output->set('RGBHashNotation', false);
1245
        $output->set('RGBHashNotation', false);
1246
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
1246
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
Línea 1250... Línea 1250...
1250
    /**
1250
    /**
1251
     * Test values.
1251
     * Test values.
1252
     * @param array $data the provider data.
1252
     * @param array $data the provider data.
1253
     * @dataProvider values_provider
1253
     * @dataProvider values_provider
1254
     */
1254
     */
1255
    public function test_values($data) {
1255
    public function test_values($data): void {
1256
        $output = new OutputFormat();
1256
        $output = new OutputFormat();
1257
        $output->set('SpaceAfterRuleName', '');
1257
        $output->set('SpaceAfterRuleName', '');
1258
        $output->set('SpaceBeforeRules', ' ');
1258
        $output->set('SpaceBeforeRules', ' ');
1259
        $output->set('SpaceAfterRules', ' ');
1259
        $output->set('SpaceAfterRules', ' ');
1260
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));
1260
        $output->set('SpaceAfterListArgumentSeparator', array('default' => '', ',' => ' '));