mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-13 00:38:42 +00:00
c0b5bc3eea
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1599 48356398-32a2-884e-a903-53898d9a118a
26 lines
764 B
PHP
26 lines
764 B
PHP
<?php
|
|
|
|
class HTMLPurifier_ConfigSchema_Validator_ParseIdTest extends HTMLPurifier_ConfigSchema_ValidatorHarness
|
|
{
|
|
|
|
public function testValidateNamespace() {
|
|
$arr = array('ID' => 'Namespace');
|
|
$this->validator->validate($arr, $this->interchange);
|
|
$this->assertIdentical($arr, array(
|
|
'ID' => 'Namespace',
|
|
'_NAMESPACE' => 'Namespace'
|
|
));
|
|
}
|
|
|
|
public function testValidateDirective() {
|
|
$arr = array('ID' => 'Namespace.Directive');
|
|
$this->validator->validate($arr, $this->interchange);
|
|
$this->assertIdentical($arr, array(
|
|
'ID' => 'Namespace.Directive',
|
|
'_NAMESPACE' => 'Namespace',
|
|
'_DIRECTIVE' => 'Directive'
|
|
));
|
|
}
|
|
|
|
}
|