[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/_test/tests/inc/ -> common_stripsourcemaps.test.php (source)

   1  <?php
   2  
   3  class common_stripsourcemaps_test extends DokuWikiTest {
   4  
   5      function test_all() {
   6  
   7          $text = <<<EOL
   8  //@ sourceMappingURL=/foo/bar/xxx.map
   9  //# sourceMappingURL=/foo/bar/xxx.map
  10  /*@ sourceMappingURL=/foo/bar/xxx.map */
  11  /*# sourceMappingURL=/foo/bar/xxx.map */
  12  bang
  13  EOL;
  14  
  15          $expect = <<<EOL
  16  //
  17  //
  18  /**/
  19  /**/
  20  bang
  21  EOL;
  22  
  23          stripsourcemaps($text);
  24  
  25  
  26          $this->assertEquals($expect, $text);
  27      }
  28  
  29  }