From ef2e7b3f9d264ec146d4dae257b1e295ab3b462a Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 21 Apr 2015 12:45:58 +0200 Subject: updates - plugins as a separate git folder --- plugins/managesieve/tests/Parser.php | 62 ------------------------------------ 1 file changed, 62 deletions(-) delete mode 100644 plugins/managesieve/tests/Parser.php (limited to 'plugins/managesieve/tests/Parser.php') diff --git a/plugins/managesieve/tests/Parser.php b/plugins/managesieve/tests/Parser.php deleted file mode 100644 index 33edce0f0..000000000 --- a/plugins/managesieve/tests/Parser.php +++ /dev/null @@ -1,62 +0,0 @@ -as_text(); - - $this->assertEquals(trim($result), trim($output), $message); - } - - /** - * Data provider for test_parser() - */ - function data_parser() - { - $dir_path = realpath(__DIR__ . '/src'); - $dir = opendir($dir_path); - $result = array(); - - while ($file = readdir($dir)) { - if (preg_match('/^[a-z0-9_]+$/', $file)) { - $input = file_get_contents($dir_path . '/' . $file); - - if (file_exists($dir_path . '/' . $file . '.out')) { - $output = file_get_contents($dir_path . '/' . $file . '.out'); - } - else { - $output = $input; - } - - $result[] = array( - 'input' => $input, - 'output' => $output, - 'message' => "Error in parsing '$file' file", - ); - } - } - - return $result; - } -} -- cgit v1.2.3