Prepended constants with C_ to avoid reserved words as per https://www.php.net/manual...
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / DefinitionTest.php
blob826e2b6c40389de45a7a553e7ee2542ae518b8a8
1 <?php
3 class HTMLPurifier_DefinitionTest extends HTMLPurifier_Harness
5 public function test_setup()
7 $def = new HTMLPurifier_DefinitionTestable();
8 $config = HTMLPurifier_Config::createDefault();
9 $def->expectOnce('doSetup', array($config));
10 $def->setup($config);
12 public function test_setup_redundant()
14 $def = new HTMLPurifier_DefinitionTestable();
15 $config = HTMLPurifier_Config::createDefault();
16 $def->expectNever('doSetup');
17 $def->setup = true;
18 $def->setup($config);
22 // vim: et sw=4 sts=4