summaryrefslogtreecommitdiff
path: root/plugins/managesieve/tests/parser_include.phpt
blob: addc0d4497923883f131a85ed270aa634d8db17c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--TEST--
Test of Sieve include extension
--SKIPIF--
--FILE--
<?php
include '../lib/rcube_sieve_script.php';

$txt = '
require ["include"];

include "script.sieve";
# rule:[two]
if true
{
    include :optional "second.sieve";
}
';

$s = new rcube_sieve_script($txt, array(), array('variables'));
echo $s->as_text();

?>
--EXPECT--
require ["include"];
include "script.sieve";
# rule:[two]
if true
{
	include :optional "second.sieve";
}