1*c73b800aSAndreas Gohr<?php 2*c73b800aSAndreas Gohr 3*c73b800aSAndreas Gohrnamespace dokuwiki\plugin\config\test\Setting; 4*c73b800aSAndreas Gohr 5*c73b800aSAndreas Gohr/** 6*c73b800aSAndreas Gohr * @group plugin_config 7*c73b800aSAndreas Gohr * @group admin_plugins 8*c73b800aSAndreas Gohr * @group plugins 9*c73b800aSAndreas Gohr * @group bundled_plugins 10*c73b800aSAndreas Gohr */ 11*c73b800aSAndreas Gohrclass SettingNumericTest extends SettingTest { 12*c73b800aSAndreas Gohr 13*c73b800aSAndreas Gohr /** @inheritdoc */ 14*c73b800aSAndreas Gohr public function dataOut() { 15*c73b800aSAndreas Gohr return [ 16*c73b800aSAndreas Gohr [42, "\$conf['test'] = 42;\n"], 17*c73b800aSAndreas Gohr [0, "\$conf['test'] = 0;\n"], 18*c73b800aSAndreas Gohr [-42, "\$conf['test'] = -42;\n"], 19*c73b800aSAndreas Gohr [-42.13, "\$conf['test'] = -42.13;\n"], 20*c73b800aSAndreas Gohr ['12*13', "\$conf['test'] = 12*13;\n"], 21*c73b800aSAndreas Gohr ]; 22*c73b800aSAndreas Gohr } 23*c73b800aSAndreas Gohr 24*c73b800aSAndreas Gohr} 25