From: Jan Schneider Date: Thu, 16 Dec 2010 13:32:05 +0000 (+0100) Subject: Simplify, add autoloader. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=806299cdb00f161eca6c005adb9623b45753a315;p=horde.git Simplify, add autoloader. --- diff --git a/framework/Support/package.xml b/framework/Support/package.xml index d10adda6b..96e99a10a 100644 --- a/framework/Support/package.xml +++ b/framework/Support/package.xml @@ -10,8 +10,8 @@ chuck@horde.org yes - 2010-07-10 - + 2010-12-16 + 0.2.0 0.1.0 @@ -21,7 +21,8 @@ beta BSD - * Add Horde_Support_Randomid::. + +* Add Horde_Support_Randomid::. * Add Portuguese numerizer. @@ -63,6 +64,7 @@ + @@ -111,6 +113,7 @@ + @@ -151,5 +154,21 @@ * Initial Horde_Support_Numerizer objects + + + 0.2.0 + 0.1.0 + + + beta + beta + + 2010-12-16 + BSD + +* Add Horde_Support_Randomid::. + * Add Portuguese numerizer. + + diff --git a/framework/Support/test/Horde/Support/Autoload.php b/framework/Support/test/Horde/Support/Autoload.php new file mode 100644 index 000000000..955f7e8ba --- /dev/null +++ b/framework/Support/test/Horde/Support/Autoload.php @@ -0,0 +1,20 @@ +add($node); @@ -197,7 +200,7 @@ class Horde_Support_ConsistentHashTest extends PHPUnit_Framework_TestCase $this->assertEquals( $expected, - $h->getNodes($testvalue, 10)); + $h->getNodes('key', 10)); } public function testFallbackWhenANodeIsRemoved() @@ -217,8 +220,7 @@ class Horde_Support_ConsistentHashTest extends PHPUnit_Framework_TestCase // Remove the fixed test value. $nodes = array_values($nodes); $testindex = array_search('key', $nodes); - $tmp = array_splice($nodes, $testindex, 1); - $testvalue = array_shift($tmp); + array_splice($nodes, $testindex, 1); foreach ($nodes as $node) { $h->add($node);