You are here

public function ElementsTest::testNormalizeSvgElement in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/test/HTML5/ElementsTest.php \Masterminds\HTML5\Tests\ElementsTest::testNormalizeSvgElement()

File

vendor/masterminds/html5/test/HTML5/ElementsTest.php, line 442

Class

ElementsTest

Namespace

Masterminds\HTML5\Tests

Code

public function testNormalizeSvgElement() {
  $tests = array(
    'foo' => 'foo',
    'altglyph' => 'altGlyph',
    'BAR' => 'bar',
    'fespecularlighting' => 'feSpecularLighting',
    'bAz' => 'baz',
    'foreignobject' => 'foreignObject',
  );
  foreach ($tests as $input => $expected) {
    $this
      ->assertEquals($expected, Elements::normalizeSvgElement($input));
  }
}