public static function setDI(DiInterface $di) { parent::setDI($di); }
public function testIssue2002() { $di = new Phalcon\DI\FactoryDefault(); $di->getshared('url')->setBaseUri('/'); \Phalcon\Tag::setDI($di); $html = Phalcon\Tag::linkTo(array('signup/register', 'Register Here!', 'class' => 'btn-primary', 'query' => array('from' => 'github', 'token' => '123456'))); $this->assertEquals($html, '<a href="/signup/register?from=github&token=123456" class="btn-primary">Register Here!</a>'); }
public function testIssue1662() { $di = new Phalcon\DI\FactoryDefault(); \Phalcon\Tag::setDI($di); \Phalcon\Tag::setDocType(Phalcon\Tag::HTML5); $html = \Phalcon\Tag::getDocType(); $this->assertEquals($html, '<!DOCTYPE html>' . PHP_EOL); }
public static function setDI(PhDIInterface $di) { return parent::setDI($di); }