source: subversion/trunk/plugins/managesieve/tests/parser_include.phpt @ 5441

Last change on this file since 5441 was 5441, checked in by alec, 19 months ago
  • Added 'address' and 'envelope' tests support
  • Added 'body' extension support (RFC5173)
  • Added 'subaddress' extension support (RFC5233)
  • Added comparators support
  • Changed Sender/Recipient? labels to From/To?
  • Fixed importing rule names from Ingo
  • Fixed handling of extensions disabled in config
File size: 435 bytes
Line 
1--TEST--
2Test of Sieve include extension
3--SKIPIF--
4--FILE--
5<?php
6include '../lib/rcube_sieve_script.php';
7
8$txt = '
9require ["include"];
10
11include "script.sieve";
12# rule:[two]
13if true
14{
15    include :optional "second.sieve";
16}
17';
18
19$s = new rcube_sieve_script($txt, array(), array('variables'));
20echo $s->as_text();
21
22?>
23--EXPECT--
24require ["include"];
25include "script.sieve";
26# rule:[two]
27if true
28{
29        include :optional "second.sieve";
30}
Note: See TracBrowser for help on using the repository browser.