From 19013c175a4092d17d1ae7e43dd1c77f0aaccead Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Tue, 2 Nov 2010 18:33:35 +0100 Subject: [PATCH] Initial Horde_Nonce skeleton. --- framework/Nonce/lib/Horde/Nonce.php | 1 + framework/Nonce/test/Horde/Nonce/AllTests.php | 50 +++++++++++++++++++++++++++ framework/Nonce/test/Horde/Nonce/Autoload.php | 23 ++++++++++++ framework/Nonce/test/Horde/Nonce/phpunit.xml | 8 +++++ 4 files changed, 82 insertions(+) create mode 100644 framework/Nonce/lib/Horde/Nonce.php create mode 100644 framework/Nonce/test/Horde/Nonce/AllTests.php create mode 100644 framework/Nonce/test/Horde/Nonce/Autoload.php create mode 100644 framework/Nonce/test/Horde/Nonce/phpunit.xml diff --git a/framework/Nonce/lib/Horde/Nonce.php b/framework/Nonce/lib/Horde/Nonce.php new file mode 100644 index 000000000..b3d9bbc7f --- /dev/null +++ b/framework/Nonce/lib/Horde/Nonce.php @@ -0,0 +1 @@ + + * @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 + * @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 index 000000000..47545d441 --- /dev/null +++ b/framework/Nonce/test/Horde/Nonce/Autoload.php @@ -0,0 +1,23 @@ + + * @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 index 000000000..502d3c9b8 --- /dev/null +++ b/framework/Nonce/test/Horde/Nonce/phpunit.xml @@ -0,0 +1,8 @@ + + + + + ../../../lib + + + -- 2.11.0