From 417f746fa5364af90d28ab3572354e155434b597 Mon Sep 17 00:00:00 2001
From: Gunnar Wrobel
Date: Wed, 17 Nov 2010 16:30:46 +0100
Subject: [PATCH] Updated package.xml and some phpdoc.
---
framework/Secret/package.xml | 78 ++++++++++++++++------
framework/Secret/test/Horde/Secret/AllTests.php | 13 ++--
framework/Secret/test/Horde/Secret/Autoload.php | 28 +++-----
.../Horde/Secret/{Class => Unit}/SecretTest.php | 26 +++++---
4 files changed, 90 insertions(+), 55 deletions(-)
rename framework/Secret/test/Horde/Secret/{Class => Unit}/SecretTest.php (69%)
diff --git a/framework/Secret/package.xml b/framework/Secret/package.xml
index ae9aaaf2a..28cce4128 100644
--- a/framework/Secret/package.xml
+++ b/framework/Secret/package.xml
@@ -1,13 +1,9 @@
-
+
Secret
pear.horde.org
Secret Encryption API
- The Horde_Secret:: package provides an API for encrypting and decrypting small pieces of data with the use of a shared key.
-
+ The Horde_Secret:: package provides an API for encrypting and decrypting small pieces of data with the use of a shared key.
Chuck Hagenbuch
chuck
@@ -20,7 +16,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
slusarz@horde.org
yes
- 2010-03-19
+ 2010-11-17
+
0.1.0
0.1.0
@@ -30,13 +27,14 @@ http://pear.php.net/dtd/package-2.0.xsd">
beta
LGPL
- * Remove dependency on Horde_Core.
+
+* Remove dependency on Horde_Core.
* Throw exceptions on error.
* Convert to OO-interface.
- * Use PEAR's Crypt_Blowfish to encrypt data.
+ * Use PEAR's Crypt_Blowfish to encrypt data.
-
+
@@ -45,6 +43,18 @@ http://pear.php.net/dtd/package-2.0.xsd">
+
+
+
+
+
+
+
+
+
+
+
+
@@ -68,23 +78,29 @@ http://pear.php.net/dtd/package-2.0.xsd">
-
-
+
+
+
+
+
+
- 2008-12-11
- 0.0.3
- 0.0.2
+ 0.0.1
+ 0.0.1
alpha
alpha
+ 2003-07-05
LGPL
- * Initial Horde 4 package.
+
+Initial release as a PEAR package
+
2006-05-08
@@ -98,22 +114,42 @@ http://pear.php.net/dtd/package-2.0.xsd">
alpha
LGPL
- - Converted to package.xml 2.0 for pear.horde.org
+
+- Converted to package.xml 2.0 for pear.horde.org
- Return false instead of generating encryption errors if $key is empty (Bug #5925).
+ 2008-12-11
- 0.0.1
- 0.0.1
+ 0.0.3
+ 0.0.2
alpha
alpha
- 2003-07-05
LGPL
- Initial release as a PEAR package
+
+* Initial Horde 4 package.
+
+
+
+
+ 0.1.0
+ 0.1.0
+
+
+ beta
+ beta
+
+ 2010-11-17
+ LGPL
+
+* Remove dependency on Horde_Core.
+ * Throw exceptions on error.
+ * Convert to OO-interface.
+ * Use PEAR's Crypt_Blowfish to encrypt data.
diff --git a/framework/Secret/test/Horde/Secret/AllTests.php b/framework/Secret/test/Horde/Secret/AllTests.php
index 1d6e62d7a..43c4d54bf 100644
--- a/framework/Secret/test/Horde/Secret/AllTests.php
+++ b/framework/Secret/test/Horde/Secret/AllTests.php
@@ -2,11 +2,14 @@
/**
* All tests for the Horde_Secret package.
*
- * @category Horde
- * @package Secret
- * @author Michael Slusarz
- * @license http://www.fsf.org/copyleft/lgpl.html LGPL
- * @link http://pear.horde.org/index.php?package=Secret
+ * PHP version 5
+ *
+ * @category Horde
+ * @package Secret
+ * @subpackage UnitTests
+ * @author Michael Slusarz
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Secret
*/
/**
diff --git a/framework/Secret/test/Horde/Secret/Autoload.php b/framework/Secret/test/Horde/Secret/Autoload.php
index b617b13ea..95d230dbc 100644
--- a/framework/Secret/test/Horde/Secret/Autoload.php
+++ b/framework/Secret/test/Horde/Secret/Autoload.php
@@ -2,28 +2,20 @@
/**
* Setup autoloading for the tests.
*
- * @category Horde
- * @package Secret
- * @author Michael Slusarz
- * @license http://www.fsf.org/copyleft/lgpl.html LGPL
- * @link http://pear.horde.org/index.php?package=Secret
+ * PHP version 5
+ *
+ * @category Horde
+ * @package Secret
+ * @subpackage UnitTests
+ * @author Michael Slusarz
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Secret
*/
-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);'
- )
- );
-}
+require_once 'Horde/Test/Autoload.php';
/** Catch strict standards */
error_reporting(E_ALL | E_STRICT);
/** Needed for PEAR_Error. */
-@require_once 'PEAR.php';
+require_once 'PEAR.php';
diff --git a/framework/Secret/test/Horde/Secret/Class/SecretTest.php b/framework/Secret/test/Horde/Secret/Unit/SecretTest.php
similarity index 69%
rename from framework/Secret/test/Horde/Secret/Class/SecretTest.php
rename to framework/Secret/test/Horde/Secret/Unit/SecretTest.php
index 0f99ba7bf..7d988c870 100644
--- a/framework/Secret/test/Horde/Secret/Class/SecretTest.php
+++ b/framework/Secret/test/Horde/Secret/Unit/SecretTest.php
@@ -2,11 +2,14 @@
/**
* Test the secret class.
*
- * @category Horde
- * @package Secret
- * @author Michael Slusarz
- * @license http://www.fsf.org/copyleft/lgpl.html LGPL
- * @link http://pear.horde.org/index.php?package=Secret
+ * PHP version 5
+ *
+ * @category Horde
+ * @package Secret
+ * @subpackage UnitTests
+ * @author Michael Slusarz
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Secret
*/
/**
@@ -22,14 +25,15 @@ require_once dirname(__FILE__) . '/../Autoload.php';
* 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 Secret
- * @author Michael Slusarz
- * @license http://www.fsf.org/copyleft/lgpl.html LGPL
- * @link http://pear.horde.org/index.php?package=Secret
+ * @category Horde
+ * @package Secret
+ * @subpackage UnitTests
+ * @author Michael Slusarz
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Secret
*/
-class Horde_Secret_Class_SecretTest extends PHPUnit_Framework_TestCase
+class Horde_Secret_Unit_SecretTest extends PHPUnit_Framework_TestCase
{
public function test8BitKey()
{
--
2.11.0