--- /dev/null
+<?php
+/**
+ * All tests for the Imp:: package.
+ *
+ * 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
+ */
+
+/**
+ * Define the main method
+ */
+if (!defined('PHPUnit_MAIN_METHOD')) {
+ define('PHPUnit_MAIN_METHOD', 'Imp_AllTests::main');
+}
+
+/**
+ * Prepare the test setup.
+ */
+require_once 'Horde/Test/AllTests.php';
+
+/**
+ * All tests for the Imp:: package.
+ *
+ * @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
+ */
+class Imp_AllTests extends Horde_Test_AllTests
+{
+}
+
+Imp_AllTests::init('Imp', __FILE__);
+
+if (PHPUnit_MAIN_METHOD == 'Imp_AllTests::main') {
+ Imp_AllTests::main();
+}
--- /dev/null
+<?php
+/**
+ * Setup autoloading for the tests.
+ *
+ * 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
+ */
+
+if (!spl_autoload_functions()) {
+ spl_autoload_register(
+ create_function(
+ '$class',
+ '$filename = str_replace(array(\'::\', \'_\'), \'/\', $class);'
+ . 'if (substr($filename, 0, 10) == "IMP/Horde/") {'
+ . ' $filename = substr($filename, 10);'
+ . ' $filename = dirname(__FILE__) . "/../../$filename";'
+ . '} else if (substr($filename, 0, 4) == "IMP/") {'
+ . ' $filename = substr($filename, 4);'
+ . ' $filename = dirname(__FILE__) . "/../../$filename";'
+ . '}'
+ . '$err_mask = E_ALL ^ E_WARNING;'
+ . '$oldErrorReporting = error_reporting($err_mask);'
+ . 'include "$filename.php";'
+ . 'error_reporting($oldErrorReporting);'
+ )
+ );
+}
+
+/** Catch strict standards */
+error_reporting(E_ALL | E_STRICT);
--- /dev/null
+<?php
+/**
+ * Test the itip response handling.
+ *
+ * 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
+ */
+
+/**
+ * Prepare the test setup.
+ */
+require_once dirname(__FILE__) . '/../../../Autoload.php';
+
+/**
+ * Test the itip response handling.
+ *
+ * Copyright 2002-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_Unit_Mime_Viewer_ItipTest
+extends PHPUnit_Framework_TestCase
+{
+ public function testMinimalItipHandlingSteps()
+ {
+ $viewer = $this->getViewer();
+ }
+
+ private function getViewer()
+ {
+ $part = new Horde_Mime_Part();
+ return new IMP_Horde_Mime_Viewer_Itip($part);
+ }
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit>
+ <filter>
+ <whitelist>
+ <directory suffix=".php">../..</directory>
+ </whitelist>
+ </filter>
+</phpunit>