blob: 64a226192e2253e3f367c0f5d67918055feda8e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'));
}
}
|