diff options
Diffstat (limited to 'lib/querypath/test/Tests/QueryPath/CSS/TokenTest.php')
-rw-r--r-- | lib/querypath/test/Tests/QueryPath/CSS/TokenTest.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/querypath/test/Tests/QueryPath/CSS/TokenTest.php b/lib/querypath/test/Tests/QueryPath/CSS/TokenTest.php new file mode 100644 index 0000000..64a2261 --- /dev/null +++ b/lib/querypath/test/Tests/QueryPath/CSS/TokenTest.php @@ -0,0 +1,23 @@ +<?php +/** @file + * CSS Event handling tests + */ +namespace QueryPath\Tests; + +require_once __DIR__ . '/../TestCase.php'; + +use \QueryPath\CSS\Token; + +/** + * @ingroup querypath_tests + * @group CSS + */ +class TokenTest extends TestCase { + public function testName() { + + $this->assertEquals('character', (Token::name(0))); + $this->assertEquals('a legal non-alphanumeric character', (Token::name(99))); + $this->assertEquals('end of file', (Token::name(FALSE))); + $this->assertEquals(0, strpos(Token::name(22),'illegal character')); + } +} |