Fix standards-compliance issue with YouTube filter with double hyphens.
[htmlpurifier/bfroehle.git] / tests / HTMLPurifier / DefinitionTest.php
blob38676ad7a80ced7637814ef5b4d182c4286ebb05
1 <?php
3 class HTMLPurifier_DefinitionTest extends HTMLPurifier_Harness
5 function test_setup() {
6 $def = new HTMLPurifier_DefinitionTestable();
7 $config = HTMLPurifier_Config::createDefault();
8 $def->expectOnce('doSetup', array($config));
9 $def->setup($config);
11 function test_setup_redundant() {
12 $def = new HTMLPurifier_DefinitionTestable();
13 $config = HTMLPurifier_Config::createDefault();
14 $def->expectNever('doSetup');
15 $def->setup = true;
16 $def->setup($config);
20 // vim: et sw=4 sts=4