Pipe\Compressor\YuglifyJs::render PHP Метод

render() публичный Метод

public render ( $context = null, $vars = [] )
    function render($context = null, $vars = array())
    {
        return $this->compress($this->getData(), self::TYPE_JS);
    }

Usage Example

Пример #1
0
 function testJs()
 {
     $c = new YuglifyJs(__DIR__ . '/fixtures/test.js');
     $this->assertNotEmpty($c->render());
 }