Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
    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();
    }
Exemplo n.º 3
0
 public function testClosure()
 {
     $extension = new AsseticExtension();
     $extension->load(array(array('closure' => '/path/to/closure.jar')), $this->container);
     $this->assertSaneContainer($this->getDumpedContainer());
 }