destroy() public method

Destroys a variable in the context.
public destroy ( string $name )
$name string String name
Beispiel #1
0
 public function testNull()
 {
     $context = new HTMLPurifier_Context();
     $var = NULL;
     $context->register('var', $var);
     $this->assertNull($context->get('var'));
     $context->destroy('var');
 }