Author: Sebastian Bergmann
Date: 2007-01-16 11:23:22 +0100 (Tue, 16 Jan 2007)
New Revision: 4515

Log:
- Skip MTA tests when mail() is not available.
Modified:
   trunk/Mail/tests/transports/transport_mta_test.php

Modified: trunk/Mail/tests/transports/transport_mta_test.php
===================================================================
--- trunk/Mail/tests/transports/transport_mta_test.php  2007-01-16 09:54:13 UTC 
(rev 4514)
+++ trunk/Mail/tests/transports/transport_mta_test.php  2007-01-16 10:23:22 UTC 
(rev 4515)
@@ -19,6 +19,11 @@
 
     protected function setUp()
     {
+        if ( !function_exists( 'mail' ) )
+        {
+            $this->markTestSkipped( 'mail() function not available.' );
+        }
+
         $this->transport = new ezcMailTransportMta();
         $this->mail = new ezcMail();
         $this->mail->from = new ezcMailAddress( '[EMAIL PROTECTED]', 'Unit 
testing' );

-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to