public function register(Engine $po_engine) { parent::register($po_engine); $po_engine->registerFunction('addscript', [$this, 'addscript']); $po_engine->registerFunction('addstylesheet', [$this, 'addstylesheet']); $po_engine->registerFunction('getscripts', [$this, 'getscripts']); $po_engine->registerFunction('getstylesheets', [$this, 'getstylesheets']); }
public function testFileNotFoundException() { $this->setExpectedException('LogicException', 'Unable to locate the asset "styles.css" in the "' . vfsStream::url('assets') . '" directory.'); $extension = new Asset(vfsStream::url('assets')); $extension->cachedAssetUrl('styles.css'); }