You are here

public function TokenizerTest::assertEventError in Zircon Profile 8

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

Assert that a given event is 'error'.

10 calls to TokenizerTest::assertEventError()
TokenizerTest::testBogusComment in vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php
TokenizerTest::testComment in vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php
TokenizerTest::testDoctype in vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php
TokenizerTest::testEndTag in vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php
TokenizerTest::testIllegalTagNames in vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php

... See full list

File

vendor/masterminds/html5/test/HTML5/Parser/TokenizerTest.php, line 35

Class

TokenizerTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function assertEventError($event) {
  $this
    ->assertEquals('error', $event['name'], "Expected error for event: " . print_r($event, true));
}