/** * testRender * * @since 3.0.0 * * @param array $transportArray * @param string $expect * * @dataProvider providerRender */ public function testRender($transportArray = [], $expect = null) { /* setup */ $transport = new Assetic\Transport($this->_registry, $this->_language); /* actual */ $actual = $transport->render($transportArray['key'], $transportArray['value']); /* compare */ $this->assertEquals($expect, $actual); }
/** * transport javascript variables * * @since 3.0.0 * * @param string $key * @param mixed $value * * @return Script */ public function transportVar($key = null, $value = null) { $transport = new Assetic\Transport(Registry::getInstance(), Language::getInstance()); $inline = $transport->render($key, $value); $this->appendInline($inline); return $this; }