gunnar: server/php-kolab/Kolab_Filter/tests dumb_usage.phpt, 1.2, 1.3 outgoing.phpt, 1.1, 1.2 simple_in_msg.phpt, 1.2, 1.3 simple_out_msg.phpt, 1.2, 1.3

cvs at kolab.org cvs at kolab.org
Tue Nov 27 16:31:46 CET 2007


Author: gunnar

Update of /kolabrepository/server/php-kolab/Kolab_Filter/tests
In directory doto:/tmp/cvs-serv17267/php-kolab/Kolab_Filter/tests

Modified Files:
	dumb_usage.phpt outgoing.phpt simple_in_msg.phpt 
	simple_out_msg.phpt 
Log Message:
Rename Outgoing to Content and make the tests work again.

Index: dumb_usage.phpt
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Filter/tests/dumb_usage.phpt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- dumb_usage.phpt	27 Nov 2007 12:35:23 -0000	1.2
+++ dumb_usage.phpt	27 Nov 2007 15:31:44 -0000	1.3
@@ -16,6 +16,13 @@
 $conf['filter']['tempdir'] = './tmp';
 $_SERVER['argv'] = array('test');
 
+$logger = Horde::getLogger();
+
+$logger->_lineFormat = '%2$s [%3$s] %7$s';
+// Activate this if you need the log information. This will
+// make the test fail though
+//$logger->_lineFormat = '%2$s [%3$s] %4$s %7$s';
+
 /* Setup the class */
 $parser   = &new Filter_Incoming('StdOut', true);
 
@@ -23,4 +30,5 @@
 $parser->parse();
 ?>
 --EXPECT--
+Kolab Filter [debug] logMessage
 Usage is test -s sender at domain -r recipient at domain

Index: outgoing.phpt
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Filter/tests/outgoing.phpt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- outgoing.phpt	27 Nov 2007 12:35:23 -0000	1.1
+++ outgoing.phpt	27 Nov 2007 15:31:44 -0000	1.2
@@ -3,7 +3,7 @@
 --SKIPIF--
 --FILE--
 <?php
-require_once 'Kolab/Filter/Outgoing.php';
+require_once 'Kolab/Filter/Content.php';
 
 /* Our test configuration */
 $conf = array();
@@ -25,13 +25,14 @@
 $inh = fopen('_data/tiny.eml', 'r');
 
 /* Setup the classes */
-$parser = &new Filter_Outgoing('StdOut', true);
+$parser = &new Filter_Content('StdOut', true);
 
 /* Parse the mail */
 $parser->parse($inh);
 ?>
 --EXPECT--
 Kolab Filter [debug] logMessage
+Kolab Filter [debug] logMessage
 Mail from sender: me at example.com
 Mail to recipient: you at example.com
 To: wrobel at pardus.example.com
@@ -45,4 +46,4 @@
 
 test
 .
-Kolab Filter [debug] logMessage
+Kolab Filter [info] logMessage

Index: simple_in_msg.phpt
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Filter/tests/simple_in_msg.phpt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- simple_in_msg.phpt	27 Nov 2007 12:35:23 -0000	1.2
+++ simple_in_msg.phpt	27 Nov 2007 15:31:44 -0000	1.3
@@ -32,6 +32,7 @@
 ?>
 --EXPECT--
 Kolab Filter [debug] logMessage
+Kolab Filter [debug] logMessage
 Mail from sender: me at example.com
 Mail to recipient: you at example.com
 Return-Path: <jramirezme at kof.com.mx>
@@ -142,3 +143,4 @@
 ------=_NextPart_7455_1D89_01C823EB.5AA2E210--
 .
 Kolab Filter [debug] logMessage
+Kolab Filter [info] logMessage

Index: simple_out_msg.phpt
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Filter/tests/simple_out_msg.phpt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- simple_out_msg.phpt	27 Nov 2007 12:35:23 -0000	1.2
+++ simple_out_msg.phpt	27 Nov 2007 15:31:44 -0000	1.3
@@ -3,7 +3,7 @@
 --SKIPIF--
 --FILE--
 <?php
-require_once 'Kolab/Filter/Outgoing.php';
+require_once 'Kolab/Filter/Content.php';
 
 /* Our test configuration */
 $conf = array();
@@ -25,13 +25,14 @@
 $inh = fopen('_data/simple.eml', 'r');
 
 /* Setup the class */
-$parser   = &new Filter_Outgoing('StdOut', true);
+$parser   = &new Filter_Content('StdOut', true);
 
 /* Parse the mail */
 $parser->parse($inh);
 ?>
 --EXPECT--
 Kolab Filter [debug] logMessage
+Kolab Filter [debug] logMessage
 Mail from sender: me at example.com
 Mail to recipient: you at example.com
 Return-Path: <jramirezme at kof.com.mx>
@@ -140,4 +141,4 @@
 
 ------=_NextPart_7455_1D89_01C823EB.5AA2E210--
 .
-Kolab Filter [debug] logMessage
+Kolab Filter [info] logMessage





More information about the commits mailing list