You are here

public function ElementsTest::testNormalizeSvgAttribute in Zircon Profile 8.0

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

File

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

Class

ElementsTest

Namespace

Masterminds\HTML5\Tests

Code

public function testNormalizeSvgAttribute() {
  $tests = array(
    'foo' => 'foo',
    'attributename' => 'attributeName',
    'BAR' => 'bar',
    'limitingconeangle' => 'limitingConeAngle',
    'bAz' => 'baz',
    'patterncontentunits' => 'patternContentUnits',
  );
  foreach ($tests as $input => $expected) {
    $this
      ->assertEquals($expected, Elements::normalizeSvgAttribute($input));
  }
}