Exemple #1
0
 public static function setDI(DiInterface $di)
 {
     parent::setDI($di);
 }
Exemple #2
0
 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&amp;token=123456" class="btn-primary">Register Here!</a>');
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 public static function setDI(PhDIInterface $di)
 {
     return parent::setDI($di);
 }