You are here

public function ScannerTest::testGetAsciiAlphaNum 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::testGetAsciiAlphaNum()

File

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

Class

ScannerTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function testGetAsciiAlphaNum() {
  $s = new Scanner(new StringInputStream("abcdef1ghpo#mn94op"));
  $this
    ->assertEquals('abcdef1ghpo', $s
    ->getAsciiAlphaNum());

  // Move past the # to scan the next group of text.
  $s
    ->next();
  $this
    ->assertEquals('mn94op', $s
    ->getAsciiAlphaNum());
}