You are here

public function ScannerTest::testGetAsciiAlpha in Zircon Profile 8.0

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

File

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

Class

ScannerTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function testGetAsciiAlpha() {
  $s = new Scanner(new StringInputStream("abcdef1%mnop*"));
  $this
    ->assertEquals('abcdef', $s
    ->getAsciiAlpha());

  // Move past the 1% to scan the next group of text.
  $s
    ->next();
  $s
    ->next();
  $this
    ->assertEquals('mnop', $s
    ->getAsciiAlpha());
}