summaryrefslogtreecommitdiff
path: root/plugins/managesieve/tests/parser_prefix.phpt
blob: c87e9658f83cfd0f3dcdeff2b11adee4db3a3cdd (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
--TEST--
Test of prefix comments handling
--SKIPIF--
--FILE--
<?php
include '../lib/rcube_sieve_script.php';

$txt = '
# this is a comment
# and the second line

require ["variables"];
set "b" "c";
';

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

?>
--EXPECT--
# this is a comment
# and the second line

require ["variables"];
set "b" "c";