You are here

public function Html5Test::testConfig in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/masterminds/html5/test/HTML5/Html5Test.php \Masterminds\HTML5\Tests\Html5Test::testConfig()

File

vendor/masterminds/html5/test/HTML5/Html5Test.php, line 158

Class

Html5Test

Namespace

Masterminds\HTML5\Tests

Code

public function testConfig() {
  $html5 = $this
    ->getInstance();
  $options = $html5
    ->getOptions();
  $this
    ->assertEquals(false, $options['encode_entities']);
  $html5 = $this
    ->getInstance(array(
    'foo' => 'bar',
    'encode_entities' => true,
  ));
  $options = $html5
    ->getOptions();
  $this
    ->assertEquals('bar', $options['foo']);
  $this
    ->assertEquals(true, $options['encode_entities']);

  // Need to reset to original so future tests pass as expected.
  // $this->getInstance()->setOption('encode_entities', false);
}