Add basic test case definition.
authorGunnar Wrobel <p@rdus.de>
Thu, 29 Oct 2009 15:54:34 +0000 (16:54 +0100)
committerGunnar Wrobel <p@rdus.de>
Thu, 29 Oct 2009 15:54:34 +0000 (16:54 +0100)
framework/Kolab_Server/test/Horde/Kolab/Server/TestCase.php [new file with mode: 0644]

diff --git a/framework/Kolab_Server/test/Horde/Kolab/Server/TestCase.php b/framework/Kolab_Server/test/Horde/Kolab/Server/TestCase.php
new file mode 100644 (file)
index 0000000..fc3ac70
--- /dev/null
@@ -0,0 +1,62 @@
+<?php
+/**
+ * Provides functions required by several Kolab_Server tests.
+ *
+ * PHP version 5
+ *
+ * @category Kolab
+ * @package  Kolab_Server
+ * @author   Gunnar Wrobel <wrobel@pardus.de>
+ * @license  http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link     http://pear.horde.org/index.php?package=Kolab_Server
+ */
+
+/**
+ * Prepare the test setup.
+ */
+require_once dirname(__FILE__) . '/Autoload.php';
+
+/**
+ * Skip LDAP based tests if we don't have ldap or Net_LDAP2.
+ *
+ * Copyright 2008-2009 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_Server
+ * @author   Gunnar Wrobel <wrobel@pardus.de>
+ * @license  http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link     http://pear.horde.org/index.php?package=Kolab_Server
+ */
+class Horde_Kolab_Server_TestCase extends PHPUnit_Framework_TestCase
+{
+    protected function getComposite()
+    {
+        return $this->getMock(
+            'Horde_Kolab_Server_Composite', array(), array(), '', false
+        );
+    }
+
+    protected function getMockedComposite()
+    {
+        return new Horde_Kolab_Server_Composite(
+            $this->getMock(
+                'Horde_Kolab_Server', array(), array(), '', false
+            ),
+            $this->getMock(
+                'Horde_Kolab_Server_Objects', array(), array(), '', false
+            ),
+            $this->getMock(
+                'Horde_Kolab_Server_Structure', array(), array(), '', false
+            ),
+            $this->getMock(
+                'Horde_Kolab_Server_Search', array(), array(), '', false
+            ),
+            $this->getMock(
+                'Horde_Kolab_Server_Schema', array(), array(), '', false
+            )
+        );
+    }
+}
\ No newline at end of file