You are here

public function ElementsTest::testElement 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::testElement()

File

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

Class

ElementsTest

Namespace

Masterminds\HTML5\Tests

Code

public function testElement() {
  foreach ($this->html5Elements as $element) {
    $this
      ->assertGreaterThan(0, Elements::element($element));
  }
  $nonhtml5 = array(
    'foo',
    'bar',
    'baz',
  );
  foreach ($nonhtml5 as $element) {
    $this
      ->assertFalse(Elements::element($element));
  }
}