diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-09-04 15:33:16 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-09-04 15:33:16 +0200 |
commit | 1d8e8634450f84eff6c47c84e78c05fd356fd31b (patch) | |
tree | 6017d955823ee51ef21f158cd0a7a07c924db639 /plugins/managesieve/tests | |
parent | 145503a32d6a3afb013ba165231cd2192bb2a7fe (diff) |
Fix parser_kep14 test
Diffstat (limited to 'plugins/managesieve/tests')
-rw-r--r-- | plugins/managesieve/tests/Parser.php | 2 | ||||
-rw-r--r-- | plugins/managesieve/tests/src/parser_kep14.out | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/managesieve/tests/Parser.php b/plugins/managesieve/tests/Parser.php index 06b644b34..00915cc20 100644 --- a/plugins/managesieve/tests/Parser.php +++ b/plugins/managesieve/tests/Parser.php @@ -31,7 +31,7 @@ class Parser extends PHPUnit_Framework_TestCase $result = array(); while ($file = readdir($dir)) { - if (preg_match('/^[a-z_]+$/', $file)) { + if (preg_match('/^[a-z0-9_]+$/', $file)) { $input = file_get_contents($dir_path . '/' . $file); if (file_exists($dir_path . '/' . $file . '.out')) { diff --git a/plugins/managesieve/tests/src/parser_kep14.out b/plugins/managesieve/tests/src/parser_kep14.out new file mode 100644 index 000000000..cb7faa7f8 --- /dev/null +++ b/plugins/managesieve/tests/src/parser_kep14.out @@ -0,0 +1,3 @@ +require ["variables"]; +set "EDITOR" "Roundcube"; +set "EDITOR_VERSION" "123"; |