Since: 3.0.0
Author: Henry Ruhs
Author: Balázs Szilágyi
Inheritance: extends HeadAbstract
Beispiel #1
0
 /**
  * testAppend
  *
  * @since 3.0.0
  *
  * @param array $metaArray
  * @param string $expect
  *
  * @dataProvider providerAppend
  */
 public function testAppend($metaArray = [], $expect = null)
 {
     /* setup */
     $meta = Head\Meta::getInstance();
     $meta->init('append');
     foreach ($metaArray as $value) {
         $meta->append($value);
     }
     /* actual */
     $actual = $meta;
     /* compare */
     $this->assertEquals($this->normalizeEOL($expect), $actual);
 }
Beispiel #2
0
 /**
  * meta
  *
  * @since 3.0.0
  *
  * @return object
  */
 public static function meta()
 {
     return Head\Meta::getInstance();
 }