public function testInvalidYuiConfig() { $this->setExpectedException('RuntimeException', 'assetic.filters.yui_js'); $this->container->addCompilerPass(new CheckYuiFilterPass()); $extension = new AsseticExtension(); $extension->load(array(array('filters' => array('yui_js' => array()))), $this->container); $this->getDumpedContainer(); }
public function testCompassCanBeEnabled() { $extension = new AsseticExtension(); $extension->load(array(array( 'filters' => array( 'scssphp' => array('compass' => true), ), )), $this->container); $this->assertTrue($this->container->get('assetic.filter.scssphp')->isCompassEnabled()); //$this->getDumpedContainer(); }
public function testClosure() { $extension = new AsseticExtension(); $extension->load(array(array('closure' => '/path/to/closure.jar')), $this->container); $this->assertSaneContainer($this->getDumpedContainer()); }