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'); }
/** * Setup the math precision * * @return void */ private function setupMathAndLocale() { ILess_Math::setup($this->env->precision); ILess_UnitConversion::setup(); }
public function __construct(ILess_Environment $env, ILess_Importer $importer) { parent::__construct($env, $importer); ILess_Math::setup(16); ILess_UnitConversion::setup(); }
/** * Restores the state so the setup can be called again * */ public static function restore() { self::$setup = false; }