phpdoc
authorGunnar Wrobel <p@rdus.de>
Tue, 17 Aug 2010 06:15:09 +0000 (08:15 +0200)
committerGunnar Wrobel <p@rdus.de>
Wed, 25 Aug 2010 17:21:41 +0000 (19:21 +0200)
imp/lib/Mime/Viewer/Itip.php
imp/lib/tests/Imp/AllTests.php
imp/lib/tests/Imp/Stub/Browser.php
imp/lib/tests/Imp/Stub/Identity.php
imp/lib/tests/Imp/Stub/Injector.php
imp/lib/tests/Imp/Stub/Prefs.php
imp/lib/tests/Imp/Stub/Registry.php
imp/lib/tests/Imp/Unit/Mime/Viewer/ItipTest.php
imp/lib/tests/Imp/phpunit.xml

index afc9256..b619181 100644 (file)
@@ -11,6 +11,7 @@
  *
  * @author   Chuck Hagenbuch <chuck@horde.org>
  * @author   Mike Cochrane <mike@graftonhall.co.nz>
+ * @author   Gunnar Wrobel <wrobel@pardus.de>
  * @category Horde
  * @license  http://www.fsf.org/copyleft/gpl.html GPL
  * @package  IMP
index 8c1da10..135b7c0 100644 (file)
@@ -21,7 +21,10 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
 
 /**
  * Prepare the test setup.
+ *
+ * @todo: fix autoloading
  */
+require_once dirname(__FILE__) . '/Autoload.php';
 require_once 'Horde/Test/AllTests.php';
 
 /**
index 4d2387a..5357ca8 100644 (file)
@@ -1,5 +1,32 @@
 <?php
+/**
+ * Dummy Horde_Browser stub.
+ *
+ * PHP version 5
+ *
+ * @category   Horde
+ * @package    IMP
+ * @subpackage UnitTests
+ * @author     Gunnar Wrobel <wrobel@pardus.de>
+ * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link       http://pear.horde.org/index.php?package=Imp
+ */
 
+/**
+ * Dummy Horde_Browser stub.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @category   Horde
+ * @package    IMP
+ * @subpackage UnitTests
+ * @author     Gunnar Wrobel <wrobel@pardus.de>
+ * @license    http://www.fsf.org/copyleft/gpl.html GPL
+ * @link       http://pear.horde.org/index.php?package=Imp
+ */
 class IMP_Stub_Browser
 {
     public function hasQuirk($quirk)
index 8c54f25..ec2e06e 100644 (file)
@@ -1,5 +1,32 @@
 <?php
+/**
+ * Dummy IMP_Prefs_Identity stub.
+ *
+ * PHP version 5
+ *
+ * @category   Horde
+ * @package    IMP
+ * @subpackage UnitTests
+ * @author     Gunnar Wrobel <wrobel@pardus.de>
+ * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link       http://pear.horde.org/index.php?package=Imp
+ */
 
+/**
+ * Dummy IMP_Prefs_Identity stub.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @category   Horde
+ * @package    IMP
+ * @subpackage UnitTests
+ * @author     Gunnar Wrobel <wrobel@pardus.de>
+ * @license    http://www.fsf.org/copyleft/gpl.html GPL
+ * @link       http://pear.horde.org/index.php?package=Imp
+ */
 class IMP_Stub_Identity
 {
     private $_id = 'default';
index 09071a2..2d859a0 100644 (file)
@@ -1,5 +1,32 @@
 <?php
+/**
+ * Dummy Horde_Injector stub.
+ *
+ * PHP version 5
+ *
+ * @category   Horde
+ * @package    IMP
+ * @subpackage UnitTests
+ * @author     Gunnar Wrobel <wrobel@pardus.de>
+ * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link       http://pear.horde.org/index.php?package=Imp
+ */
 
+/**
+ * Dummy Horde_Injector stub.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @category   Horde
+ * @package    IMP
+ * @subpackage UnitTests
+ * @author     Gunnar Wrobel <wrobel@pardus.de>
+ * @license    http://www.fsf.org/copyleft/gpl.html GPL
+ * @link       http://pear.horde.org/index.php?package=Imp
+ */
 class IMP_Stub_Injector
 {
     private $_mail;
index ec50472..0fdb53f 100644 (file)
@@ -1,5 +1,32 @@
 <?php
+/**
+ * Dummy Horde_Prefs stub.
+ *
+ * PHP version 5
+ *
+ * @category   Horde
+ * @package    IMP
+ * @subpackage UnitTests
+ * @author     Gunnar Wrobel <wrobel@pardus.de>
+ * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link       http://pear.horde.org/index.php?package=Imp
+ */
 
+/**
+ * Dummy Horde_Prefs stub.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @category   Horde
+ * @package    IMP
+ * @subpackage UnitTests
+ * @author     Gunnar Wrobel <wrobel@pardus.de>
+ * @license    http://www.fsf.org/copyleft/gpl.html GPL
+ * @link       http://pear.horde.org/index.php?package=Imp
+ */
 class IMP_Stub_Prefs
 {
     public function getValue($pref)
index e9f2e96..1f4e0b0 100644 (file)
@@ -1,5 +1,32 @@
 <?php
+/**
+ * Dummy Horde_Registry stub.
+ *
+ * PHP version 5
+ *
+ * @category   Horde
+ * @package    IMP
+ * @subpackage UnitTests
+ * @author     Gunnar Wrobel <wrobel@pardus.de>
+ * @license    http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link       http://pear.horde.org/index.php?package=Imp
+ */
 
+/**
+ * Dummy Horde_Registry stub.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (GPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
+ *
+ * @category   Horde
+ * @package    IMP
+ * @subpackage UnitTests
+ * @author     Gunnar Wrobel <wrobel@pardus.de>
+ * @license    http://www.fsf.org/copyleft/gpl.html GPL
+ * @link       http://pear.horde.org/index.php?package=Imp
+ */
 class IMP_Stub_Registry
 {
     private $_charset = 'UTF-8';
index 6d29688..f5f6703 100644 (file)
@@ -20,7 +20,7 @@ require_once dirname(__FILE__) . '/../../../Autoload.php';
 /**
  * Test the itip response handling.
  *
- * Copyright 2002-2010 The Horde Project (http://www.horde.org/)
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
  *
  * See the enclosed file COPYING for license information (GPL). If you
  * did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
@@ -451,8 +451,8 @@ extends PHPUnit_Framework_TestCase
         $this->assertEquals('Tentative: Test Invitation', $this->_getMailHeaders()->getValue('Subject'));
     }
     public function testResultMimeMessageHeadersContainsReplyToForAlternateIdentity()
-    {
-        $_GET['identity'] = 'other';
+    {  
+      $_GET['identity'] = 'other';
         $_GET['itip_action'] = array(0 => 'accept');
         $viewer = $this->_getViewer($this->_getInvitation()->exportvCalendar());
         $viewer->render('inline');
index 5d19e9d..574f198 100644 (file)
@@ -2,7 +2,7 @@
 <phpunit>
   <filter>
     <whitelist>
-      <directory suffix=".php">../..</directory>
+      <directory suffix=".php">../../Mime</directory>
     </whitelist>
   </filter>
 </phpunit>