Exemplo n.º 1
0
 /**
  * @expectedException \Athem\Exception\InvalidMethod
  */
 public final function testuksort()
 {
     try {
         $this->compiler->uksort(null);
     } catch (\Exception $e) {
         //            var_dump($e->getMessage());
         $this->assertEquals($e->getMessage(), sprintf('Method %s::uksort is not supported.', 'Athem\\Code\\Preproc', 1));
         throw $e;
     }
 }
Exemplo n.º 2
0
 /**
  * @see \Athem\Code\Preproc::__construct()
  *
  * @param array $resources
  * @param array $options
  */
 public function __construct($resources = array(), $options = array())
 {
     $this->options = Stdlib\Utils\ArrayUtils::mergeRecursiveRight($this->options, array('lesscPath' => realpath(preg_replace('/library\\/Athem.+/', '', __DIR__)) . DIRECTORY_SEPARATOR . 'node_modules' . DIRECTORY_SEPARATOR . 'less' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'lessc', 'lesscOptions' => ''));
     parent::__construct($resources, $options);
 }
Exemplo n.º 3
0
 /**
  * @param array $resources
  * @param array $options
  */
 public function __construct($resources = array(), $options = array())
 {
     $this->options = Stdlib\Utils\ArrayUtils::mergeRecursiveRight($this->options, array('phpOnly' => true, 'dwooCompiledDir' => '/tmp'));
     return parent::__construct($resources, $options);
 }
Exemplo n.º 4
0
 /**
  * @param array $resources
  * @param array $options
  */
 public function __construct($resources = array(), $options = array())
 {
     $this->options = Stdlib\Utils\ArrayUtils::mergeRecursiveRight($this->options, array('tmpExt' => 'sass', 'sassPath' => DIRECTORY_SEPARATOR . 'usr' . DIRECTORY_SEPARATOR . 'local' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'sass', 'sassOptions' => '', 'sassParserOptions' => array('style' => 'expanded', 'cache' => FALSE, 'syntax' => \SassFile::SASS, 'debug' => FALSE)));
     return parent::__construct($resources, $options);
 }
Exemplo n.º 5
0
 /**
  * @param array $resources
  * @param array $options
  */
 public function __construct($resources = array(), $options = array())
 {
     $this->options = Stdlib\Utils\ArrayUtils::mergeRecursiveRight($this->options, array('yuiPath' => __DIR__ . '/yuicompressor-2.4.8.jar', 'yuiOptions' => '--type ' . (empty($options['type']) ? 'css' : $options['type']), 'java' => '/usr/bin/java'));
     parent::__construct($resources, $options);
 }
Exemplo n.º 6
0
 /**
  * @param array $resources
  * @param array $options
  */
 public function __construct($resources = array(), $options = array())
 {
     $this->options = Stdlib\Utils\ArrayUtils::mergeRecursiveRight($this->options, array('tmpExt' => 'sass', 'coffeePath' => realpath(preg_replace('/library\\/Athem.+/', '', __DIR__)) . DIRECTORY_SEPARATOR . 'node_modules' . DIRECTORY_SEPARATOR . 'coffee-script' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'coffee', 'coffeeOptions' => '-bp', 'coffeeCompilerOptions' => array()));
     return parent::__construct($resources, $options);
 }
Exemplo n.º 7
0
 /**
  * @param array $resources
  * @param array $options
  */
 public function __construct($resources = array(), $options = array())
 {
     $this->options = Stdlib\Utils\ArrayUtils::mergeRecursiveRight($this->options, array('tmpExt' => 'scss', 'scssPath' => DIRECTORY_SEPARATOR . 'usr' . DIRECTORY_SEPARATOR . 'local' . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'scss', 'scssOptions' => ''));
     return parent::__construct($resources, $options);
 }
Exemplo n.º 8
0
 /**
  * @param array $resources
  * @param array $options
  */
 public function __construct($resources = array(), $options = array())
 {
     $this->options = Stdlib\Utils\ArrayUtils::mergeRecursiveRight($this->options, array('phpOnly' => true, 'twigOptions' => array()));
     return parent::__construct($resources, $options);
 }