1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-07 14:46:48 +02:00

Fix PHP 5.0 and other early version compatibility by removing use of __toString

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1629 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-03-23 02:50:42 +00:00
parent 6d517fab09
commit 7e59923029
5 changed files with 16 additions and 22 deletions

View File

@@ -40,20 +40,6 @@ class HTMLPurifier_ConfigSchema_ValidatorTest extends UnitTestCase
$this->validator->validate($this->interchange);
}
public function testDirectiveIdInstanceof() {
// This example is somewhat contrived
$this->makeNamespace('Ns');
$d = new HTMLPurifier_ConfigSchema_Interchange_Directive();
$d->id = 3;
$d->default = 0;
$d->type = 'int';
$d->description = 'Description';
$this->interchange->addDirective($d);
$this->expectValidationException("Id '3' in directive '3' is not an instance of HTMLPurifier_ConfigSchema_Interchange_Id");
$this->validator->validate($this->interchange);
}
public function testDirectiveTypeNotEmpty() {
$this->makeNamespace('Ns');
$d = $this->makeDirective('Ns', 'Dir');