Initial Horde_Nonce skeleton.
authorGunnar Wrobel <p@rdus.de>
Tue, 2 Nov 2010 17:33:35 +0000 (18:33 +0100)
committerGunnar Wrobel <p@rdus.de>
Wed, 3 Nov 2010 16:33:38 +0000 (17:33 +0100)
framework/Nonce/lib/Horde/Nonce.php [new file with mode: 0644]
framework/Nonce/test/Horde/Nonce/AllTests.php [new file with mode: 0644]
framework/Nonce/test/Horde/Nonce/Autoload.php [new file with mode: 0644]
framework/Nonce/test/Horde/Nonce/phpunit.xml [new file with mode: 0644]

diff --git a/framework/Nonce/lib/Horde/Nonce.php b/framework/Nonce/lib/Horde/Nonce.php
new file mode 100644 (file)
index 0000000..b3d9bbc
--- /dev/null
@@ -0,0 +1 @@
+<?php
diff --git a/framework/Nonce/test/Horde/Nonce/AllTests.php b/framework/Nonce/test/Horde/Nonce/AllTests.php
new file mode 100644 (file)
index 0000000..0f97215
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+/**
+ * All tests for the Horde_Nonce:: package.
+ *
+ * PHP version 5
+ *
+ * @category   Horde
+ * @package    Nonce
+ * @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=Nonce
+ */
+
+/**
+ * Define the main method
+ */
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Horde_Nonce_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   Horde
+ * @package    Nonce
+ * @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=Nonce
+ */
+class Horde_Nonce_AllTests extends Horde_Test_AllTests
+{
+}
+
+Horde_Nonce_AllTests::init('Horde_Nonce', __FILE__);
+
+if (PHPUnit_MAIN_METHOD == 'Horde_Nonce_AllTests::main') {
+    Horde_Nonce_AllTests::main();
+}
diff --git a/framework/Nonce/test/Horde/Nonce/Autoload.php b/framework/Nonce/test/Horde/Nonce/Autoload.php
new file mode 100644 (file)
index 0000000..47545d4
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Setup autoloading for the tests.
+ *
+ * PHP version 5
+ *
+ * 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   Horde
+ * @package    Nonce
+ * @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=Nonce
+ */
+
+require_once 'Horde/Test/Autoload.php';
+
+/** Catch strict standards */
+error_reporting(E_ALL | E_STRICT);
diff --git a/framework/Nonce/test/Horde/Nonce/phpunit.xml b/framework/Nonce/test/Horde/Nonce/phpunit.xml
new file mode 100644 (file)
index 0000000..502d3c9
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<phpunit>
+  <filter>
+    <whitelist>
+      <directory suffix=".php">../../../lib</directory>
+    </whitelist>
+  </filter>
+</phpunit>