function test_parse_regexp_tests() { $tests = array(array('test' => 'header', 'type' => 'regex', 'arg1' => 'received', 'arg2' => '(20|21|22|23|24|25|26|27|28) Feb 2014'), array('test' => 'header', 'type' => 'regex', 'arg1' => 'received', 'arg2' => '([ 0]1|[ 0]2|[ 0]3|[ 0]4|[ 0]5) Mar 2014')); $result = rcube_sieve_vacation::parse_regexp_tests($tests); $this->assertCount(2, $result); $this->assertSame('20 Feb 2014', $result['from']); $this->assertSame('05 Mar 2014', $result['to']); }