You are here

public function CharacterReferenceTest::testLookupDecimal in Zircon Profile 8

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

File

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

Class

CharacterReferenceTest

Namespace

Masterminds\HTML5\Tests\Parser

Code

public function testLookupDecimal() {
  $this
    ->assertEquals('&', CharacterReference::lookupDecimal(38));
  $this
    ->assertEquals('&', CharacterReference::lookupDecimal('38'));
  $this
    ->assertEquals('<', CharacterReference::lookupDecimal(60));
  $this
    ->assertEquals('Σ', CharacterReference::lookupDecimal(931));
  $this
    ->assertEquals('Σ', CharacterReference::lookupDecimal('0931'));
}