Exemple #1
0
 /**
  * @depends	testInitialState
  * @return	null
  */
 public function testAddMetaGetMetaTags()
 {
     $this->assertEquals(array(), $this->head->getMetaTags());
     $tag1 = $this->factory->createMetaTag('author', 'robert');
     $this->assertSame($this->head, $this->head->addMeta('author', 'robert'));
     $expected = array($tag1);
     $this->assertEquals($expected, $this->head->getMetaTags());
     $tag2 = $this->factory->createMetaTag(null, null, null, 'UTF-8');
     $this->assertSame($this->head, $this->head->addMeta(null, null, null, 'UTF-8'));
     $expected = array($tag1, $tag2);
     $this->assertEquals($expected, $this->head->getMetaTags());
     $tag3 = $this->factory->createMetaTag(null, 'text/html', 'Content-Type', 'UTF-8');
     $this->assertSame($this->head, $this->head->addMeta(null, 'text/html', 'Content-Type', 'UTF-8'));
     $expected = array($tag1, $tag2, $tag3);
     $this->assertEquals($expected, $this->head->getMetaTags());
 }