С версии: 3.0.0
Автор: Henry Ruhs
Наследование: extends Redaxscript\Singleton, implements Redaxscript\Head\HeadInterface
Пример #1
0
 /**
  * testRender
  *
  * @since 3.0.0
  *
  * @param string $append
  * @param string $prepend
  * @param string $expect
  *
  * @dataProvider providerInline
  */
 public function testRender($append = null, $prepend = null, $expect = null)
 {
     /* setup */
     $style = Head\Style::getInstance();
     $style->appendInline($append)->prependInline($prepend);
     /* actual */
     $actual = $style;
     /* compare */
     $this->assertEquals($expect, $actual);
 }
Пример #2
0
 /**
  * style
  *
  * @since 3.0.0
  *
  * @return object
  */
 public static function style()
 {
     return Head\Style::getInstance();
 }