コード例 #1
0
 protected function setUp()
 {
     parent::setUp();
     // The return value of the closure shouldn't matter since this test should
     // never call it
     SkinFactory::getDefaultInstance()->register('fakeskin', 'FakeSkin', function () {
     });
 }
コード例 #2
0
 protected function setUp()
 {
     parent::setUp();
     $this->setMwGlobals(array('wgResourceLoaderLESSFunctions' => array('test-sum' => function ($frame, $less) {
         $sum = 0;
         foreach ($frame[2] as $arg) {
             $sum += (int) $arg[1];
         }
         return $sum;
     }), 'wgResourceLoaderLESSImportPaths' => array(dirname(dirname(__DIR__)) . '/data/less/common'), 'wgResourceLoaderLESSVars' => array('foo' => '2px', 'Foo' => '#eeeeee', 'bar' => 5)));
 }
コード例 #3
0
 /**
  * @param string $file
  * @param ResourceLoaderModule $module The ResourceLoader module that
  *   contains the file
  */
 public function __construct($file, ResourceLoaderModule $module)
 {
     parent::__construct('testLessFileCompilation');
     $this->file = $file;
     $this->module = $module;
 }
コード例 #4
0
 protected function setUp()
 {
     parent::setUp();
     $this->imagesPath = __DIR__ . '/../../data/resourceloader';
 }
コード例 #5
0
 protected function setUp()
 {
     parent::setUp();
     $this->setMwGlobals(array('wgResourceLoaderLESSImportPaths' => array(dirname(dirname(__DIR__)) . '/data/less/common'), 'wgResourceLoaderLESSVars' => array('foo' => '2px', 'Foo' => '#eeeeee', 'bar' => 5)));
 }