Пример #1
0
 /**
  * @dataProvider	provideCharsets
  * @return			null
  */
 public function testSetGetCharset($encoding)
 {
     $this->assertSame($this->htmlDoc, $this->htmlDoc->setCharset($encoding));
     $charset = $this->htmlDoc->getCharset();
     $this->assertInstanceOf('Appfuel\\View\\Html\\Element\\Meta\\Charset', $charset);
     $this->assertEquals('Content-Type', $charset->getAttribute('http-equiv'));
     $this->assertEquals('text/html', $charset->getAttribute('content'));
     $this->assertEquals($encoding, $charset->getAttribute('charset'));
 }