Add test stubs to skeleton.
authorJan Schneider <jan@horde.org>
Thu, 16 Sep 2010 14:15:26 +0000 (16:15 +0200)
committerJan Schneider <jan@horde.org>
Fri, 17 Sep 2010 12:29:17 +0000 (14:29 +0200)
skeleton/test/Skeleton/AllTests.php [new file with mode: 0644]
skeleton/test/Skeleton/ExampleTest.php [new file with mode: 0644]

diff --git a/skeleton/test/Skeleton/AllTests.php b/skeleton/test/Skeleton/AllTests.php
new file mode 100644 (file)
index 0000000..ab55a85
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+/**
+ * Skeleton test suite.
+ *
+ * @author     Your Name <you@example.com>
+ * @license    http://www.fsf.org/copyleft/gpl.html GPL
+ * @category   Horde
+ * @package    Skeleton
+ * @subpackage UnitTests
+ */
+
+/**
+ * Define the main method
+ */
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Skeleton_AllTests::main');
+}
+
+/**
+ * Prepare the test setup.
+ */
+require_once 'Horde/Test/AllTests.php';
+
+/**
+ * @package    Skeleton
+ * @subpackage UnitTests
+ */
+class Skeleton_AllTests extends Horde_Test_AllTests
+{
+}
+
+Skeleton_AllTests::init('Skeleton', __FILE__);
+
+if (PHPUnit_MAIN_METHOD == 'Skeleton_AllTests::main') {
+    Skeleton_AllTests::main();
+}
diff --git a/skeleton/test/Skeleton/ExampleTest.php b/skeleton/test/Skeleton/ExampleTest.php
new file mode 100644 (file)
index 0000000..76bf849
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+/**
+ * @author     Your Name <you@example.com>
+ * @license    http://www.fsf.org/copyleft/gpl.html GPL
+ * @category   Horde
+ * @package    Skeleton
+ * @subpackage UnitTests
+ */
+
+class Skeleton_ExampleTest extends PHPUnit_Framework_TestCase
+{
+    public function setUp()
+    {
+    }
+
+    public function testSomething()
+    {
+    }
+
+    public function tearDown()
+    {
+    }
+}