1<?php
2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
3//
4// All Rights Reserved. See copyright.txt for details and a complete list of authors.
5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
6// $Id$
7
8/**
9 * @group unit
10 *
11 */
12
13class DeclFilter_CatchAllUnsetTest extends TikiTestCase
14{
15	function testMatch()
16	{
17		$rule = new DeclFilter_CatchAllUnsetRule();
18
19		$this->assertTrue($rule->match('hello'));
20	}
21
22	function testApply()
23	{
24		$rule = new DeclFilter_CatchAllUnsetRule();
25
26		$data = [
27			'hello' => '123abc',
28		];
29
30		$rule->apply($data, 'hello');
31
32		$this->assertFalse(isset($data['hello']));
33	}
34}
35