From 5c0e015e170775e836f52833daedbd24a8959e85 Mon Sep 17 00:00:00 2001
From: Gunnar Wrobel
Date: Sun, 27 Jun 2010 11:44:17 +0200
Subject: [PATCH] Initial package structure.
---
framework/Kolab_Config/package.xml | 95 ++++++++++++++++++++++
.../test/Horde/Kolab/Config/AllTests.php | 50 ++++++++++++
.../test/Horde/Kolab/Config/Autoload.php | 29 +++++++
.../Horde/Kolab/Config/Integration/ConfigTest.php | 40 +++++++++
.../test/Horde/Kolab/Config/phpunit.xml | 8 ++
5 files changed, 222 insertions(+)
create mode 100644 framework/Kolab_Config/package.xml
create mode 100644 framework/Kolab_Config/test/Horde/Kolab/Config/AllTests.php
create mode 100644 framework/Kolab_Config/test/Horde/Kolab/Config/Autoload.php
create mode 100644 framework/Kolab_Config/test/Horde/Kolab/Config/Integration/ConfigTest.php
create mode 100644 framework/Kolab_Config/test/Horde/Kolab/Config/phpunit.xml
diff --git a/framework/Kolab_Config/package.xml b/framework/Kolab_Config/package.xml
new file mode 100644
index 000000000..408f33266
--- /dev/null
+++ b/framework/Kolab_Config/package.xml
@@ -0,0 +1,95 @@
+
+
+ Kolab_Config
+ pear.horde.org
+ A package for reading the Kolab server configuration.
+ This package reads the various Kolab server
+ configuration files. It should also support retrieving configuration
+ parameters from LDAP but this is not yet implemented.
+
+ Gunnar Wrobel
+ wrobel
+ p@rdus.de
+ yes
+
+
+ Chuck Hagenbuch
+ chuck
+ chuck@horde.org
+ yes
+
+
+ Jan Schneider
+ jan
+ jan@horde.org
+ yes
+
+ 2010-06-27
+
+
+ 0.1.0
+ 0.1.0
+
+
+ alpha
+ alpha
+
+ LGPL
+
+* Initial package.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 4.3.0
+
+
+ 1.4.0b1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0.1.0
+ 0.1.0
+
+
+ alpha
+ alpha
+
+ 2010-06-27
+ LGPL
+
+* Initial package.
+
+
+
+
diff --git a/framework/Kolab_Config/test/Horde/Kolab/Config/AllTests.php b/framework/Kolab_Config/test/Horde/Kolab/Config/AllTests.php
new file mode 100644
index 000000000..231c1b853
--- /dev/null
+++ b/framework/Kolab_Config/test/Horde/Kolab/Config/AllTests.php
@@ -0,0 +1,50 @@
+
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Config
+ */
+
+/**
+ * Define the main method
+ */
+if (!defined('PHPUnit_MAIN_METHOD')) {
+ define('PHPUnit_MAIN_METHOD', 'Horde_Kolab_Config_AllTests::main');
+}
+
+/**
+ * Prepare the test setup.
+ */
+require_once 'Horde/Test/AllTests.php';
+
+/**
+ * Combine the tests for this package.
+ *
+ * Copyright 2007-2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (LGPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
+ *
+ * @category Kolab
+ * @package Kolab_Config
+ * @subpackage UnitTests
+ * @author Gunnar Wrobel
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Config
+ */
+class Horde_Kolab_Config_AllTests extends Horde_Test_AllTests
+{
+}
+
+Horde_Kolab_Config_AllTests::init('Horde_Kolab_Config', __FILE__);
+
+if (PHPUnit_MAIN_METHOD == 'Horde_Kolab_Config_AllTests::main') {
+ Horde_Kolab_Config_AllTests::main();
+}
diff --git a/framework/Kolab_Config/test/Horde/Kolab/Config/Autoload.php b/framework/Kolab_Config/test/Horde/Kolab/Config/Autoload.php
new file mode 100644
index 000000000..a82afdaff
--- /dev/null
+++ b/framework/Kolab_Config/test/Horde/Kolab/Config/Autoload.php
@@ -0,0 +1,29 @@
+
+
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Config
+ */
+
+if (!spl_autoload_functions()) {
+ spl_autoload_register(
+ create_function(
+ '$class',
+ '$filename = str_replace(array(\'::\', \'_\'), \'/\', $class);'
+ . '$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);
diff --git a/framework/Kolab_Config/test/Horde/Kolab/Config/Integration/ConfigTest.php b/framework/Kolab_Config/test/Horde/Kolab/Config/Integration/ConfigTest.php
new file mode 100644
index 000000000..a57e334ed
--- /dev/null
+++ b/framework/Kolab_Config/test/Horde/Kolab/Config/Integration/ConfigTest.php
@@ -0,0 +1,40 @@
+
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Config
+ */
+
+/**
+ * Prepare the test setup.
+ */
+require_once dirname(__FILE__) . '/../Autoload.php';
+
+/**
+ * Test the Kolab session handler base implementation.
+ *
+ * Copyright 2009-2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (LGPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
+ *
+ * @category Kolab
+ * @package Kolab_Config
+ * @author Gunnar Wrobel
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Config
+ */
+class Horde_Kolab_Config_Integration_ConfigTest
+extends PHPUnit_Framework_TestCase
+{
+
+ public function testSomething()
+ {
+ }
+}
\ No newline at end of file
diff --git a/framework/Kolab_Config/test/Horde/Kolab/Config/phpunit.xml b/framework/Kolab_Config/test/Horde/Kolab/Config/phpunit.xml
new file mode 100644
index 000000000..0148736fe
--- /dev/null
+++ b/framework/Kolab_Config/test/Horde/Kolab/Config/phpunit.xml
@@ -0,0 +1,8 @@
+
+
+
+
+ ../../../../lib
+
+
+
--
2.11.0