Esempio n. 1
0
 public function testConstructClassWithArgs()
 {
     $foo = 'foo';
     $bar = 'bar';
     $class = Reflect::constructClass('Cynode\\AssetManager\\Tests\\Template\\ReflectTestClass', array($foo, $bar));
     $this->assertEquals($foo, $class->foo);
     $this->assertEquals($bar, $class->bar);
 }
Esempio n. 2
0
 protected function setFilters()
 {
     foreach ($this->config['filters'] as $alias => $filter) {
         $this->fm->set($alias, Util\Reflect::constructClass($filter['class'], isset($filter['__construct']) ? $filter['__construct'] : array()));
     }
 }