You are here

public function ScannerTest::testConstruct in Zircon Profile 8

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

A canary test to make sure the basics are setup and working.

File

vendor/masterminds/html5/test/HTML5/Parser/ScannerTest.php, line 17
Test the Scanner. This requires the InputStream tests are all good.

Class

ScannerTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function testConstruct() {
  $is = new StringInputStream("abc");
  $s = new Scanner($is);
  $this
    ->assertInstanceOf('\\Masterminds\\HTML5\\Parser\\Scanner', $s);
}