From: Michael M Slusarz Date: Tue, 3 Mar 2009 06:58:19 +0000 (-0700) Subject: Fix some errors in the test script. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2ac50c87a0c468f442324f764bb668e32040636c;p=horde.git Fix some errors in the test script. --- diff --git a/framework/Imap_Client/test/Horde/Imap/test_client.php b/framework/Imap_Client/test/Horde/Imap/test_client.php index 0e607321b..1a8a5cb68 100644 --- a/framework/Imap_Client/test/Horde/Imap/test_client.php +++ b/framework/Imap_Client/test/Horde/Imap/test_client.php @@ -16,9 +16,9 @@ * + setComparator() * + RFC 4551 (CONDSTORE) related functions * - * @author Michael Slusarz - * @category Horde - * @package Horde_Imap_Client + * @author Michael Slusarz + * @category Horde + * @package Horde_Imap_Client */ /** Configuration **/ @@ -49,6 +49,7 @@ $test_mbox_utf8 = 'TestMailboxTest1è'; /** End Configuration **/ require_once 'Horde/Autoloader.php'; +$currdir = dirname(__FILE__); /* Check for Horde_Cache::. */ if (@include_once 'Horde/Cache.php') { @@ -73,6 +74,7 @@ if (empty($argv[2])) { exit("Need password. Exiting.\n"); } +$imap_utils = new Horde_Imap_Client_Utils(); if (!empty($argv[3])) { $params = array_merge($params, $imap_utils->parseImapUrl($argv[3])); } @@ -92,7 +94,6 @@ if (@include_once 'Benchmark/Timer.php') { // Add an ID field to send to server (ID extension) $params['id'] = array('name' => 'Horde_Imap_Client test program'); -$imap_utils = new Horde_Imap_Client_Utils(); $imap_client = Horde_Imap_Client::getInstance($driver, $params); if ($driver == 'Cclient_Pop3') { $test_mbox = $test_mbox_utf8 = 'INBOX';