Beispiel #1
0
 public function testIssue()
 {
     if ($this->locale === false) {
         $this->markTestSkipped('The test locale could not be set.');
     }
     ILess_Math::setup();
     ILess_UnitConversion::setup();
     $this->assertEquals(array('rad' => '0.1591549430918953', 'deg' => '0.0027777777777777', 'grad' => '0.0025000000000000', 'turn' => '1'), ILess_UnitConversion::$angle, 'The math setup works');
 }
Beispiel #2
0
 /**
  * Restores the math precision
  *
  * @return void
  */
 private function restoreMathAndLocale()
 {
     ILess_Math::restore();
     ILess_UnitConversion::restore();
 }
Beispiel #3
0
 public function __construct(ILess_Environment $env, ILess_Importer $importer)
 {
     parent::__construct($env, $importer);
     ILess_Math::setup(16);
     ILess_UnitConversion::setup();
 }
Beispiel #4
0
 /**
  * Restores the state so the setup can be called again
  *
  */
 public static function restore()
 {
     self::$setup = false;
 }