diff --git a/cake/basics.php b/cake/basics.php index ca262cb0a..88ea14bdb 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -151,8 +151,8 @@ if (!function_exists('sortByKey')) { function h($text, $double = true, $charset = null) { if (is_array($text)) { $texts = array(); - foreach ($text as $t) { - $texts[] = h($t, $double, $charset); + foreach ($text as $k => $t) { + $texts[$k] = h($t, $double, $charset); } return $texts; } diff --git a/cake/console/templates/default/views/index.ctp b/cake/console/templates/default/views/index.ctp index fa2f1f754..4d4c8cde2 100644 --- a/cake/console/templates/default/views/index.ctp +++ b/cake/console/templates/default/views/index.ctp @@ -48,7 +48,7 @@ } } if ($isKey !== true) { - echo "\t\t
Array(
[0] => Array(",
- 'guid' => array('isPermaLink' => 'true', 'value' => 'http://groups.google.com/group/cake-php/msg/49bc00f3bc651b4f'),
+ 'guid' => array('@isPermaLink' => 'true', '@' => 'http://groups.google.com/group/cake-php/msg/49bc00f3bc651b4f'),
'author' => 'bmil...@gmail.com(bpscrugs)',
'pubDate' => 'Fri, 28 Dec 2007 00:44:14 UT',
),
@@ -2750,7 +2750,7 @@ class SetTest extends CakeTestCase {
'title' => 'Re: share views between actions?',
'link' => 'http://groups.google.com/group/cake-php/msg/8b350d898707dad8',
'description' => 'Then perhaps you might do us all a favour and refrain from replying to
things you do not understand. That goes especially for asinine comments.
Indeed.
To sum up:
No comment.
In my day, a simple "RTFM" would suffice. I\'ll keep in mind to ignore any
further responses from you.
You (and I) were referring to the *online documentation*, not other',
- 'guid' => array('isPermaLink' => 'true', 'value' => 'http://groups.google.com/group/cake-php/msg/8b350d898707dad8'),
+ 'guid' => array('@isPermaLink' => 'true', '@' => 'http://groups.google.com/group/cake-php/msg/8b350d898707dad8'),
'author' => 'subtropolis.z...@gmail.com(subtropolis zijn)',
'pubDate' => 'Fri, 28 Dec 2007 00:45:01 UT'
)
@@ -2762,7 +2762,7 @@ class SetTest extends CakeTestCase {
$xml = Xml::build($string);
$result = Set::reverse($xml);
- $expected = array('data' => array('post' => array('title' => 'Title of this post', 'description' => 'cool')));
+ $expected = array('data' => array('post' => array('@title' => 'Title of this post', '@description' => 'cool')));
$this->assertEqual($result, $expected);
$xml = Xml::build('
passed to a flex app. I have the following model association:
ServiceDay->(hasMany)ServiceTi me->(hasMany)ServiceTimePrice. So what
the current output from my findall is something like this example:
Array(
[0] => Array(",
- 'creator' => 'cakephp',
+ 'dc:creator' => 'cakephp',
'category' => array('cakephp', 'model'),
- 'guid' => array('isPermaLink' => 'true', 'value' => 'http://groups.google.com/group/cake-php/msg/49bc00f3bc651b4f'),
+ 'guid' => array('@isPermaLink' => 'true', '@' => 'http://groups.google.com/group/cake-php/msg/49bc00f3bc651b4f'),
'author' => 'bmil...@gmail.com(bpscrugs)',
'pubDate' => 'Fri, 28 Dec 2007 00:44:14 UT',
),
@@ -2862,9 +2862,9 @@ class SetTest extends CakeTestCase {
'title' => 'Re: share views between actions?',
'link' => 'http://groups.google.com/group/cake-php/msg/8b350d898707dad8',
'description' => 'Then perhaps you might do us all a favour and refrain from replying to
things you do not understand. That goes especially for asinine comments.
Indeed.
To sum up:
No comment.
In my day, a simple "RTFM" would suffice. I\'ll keep in mind to ignore any
further responses from you.
You (and I) were referring to the *online documentation*, not other',
- 'creator' => 'cakephp',
+ 'dc:creator' => 'cakephp',
'category' => array('cakephp', 'model'),
- 'guid' => array('isPermaLink' => 'true', 'value' => 'http://groups.google.com/group/cake-php/msg/8b350d898707dad8'),
+ 'guid' => array('@isPermaLink' => 'true', '@' => 'http://groups.google.com/group/cake-php/msg/8b350d898707dad8'),
'author' => 'subtropolis.z...@gmail.com(subtropolis zijn)',
'pubDate' => 'Fri, 28 Dec 2007 00:45:01 UT'
)
@@ -2901,8 +2901,8 @@ class SetTest extends CakeTestCase {
$expected = array('XRDS' => array(
'XRD' => array(
array(
- 'id' => 'oauth',
- 'version' => '2.0',
+ '@xml:id' => 'oauth',
+ '@version' => '2.0',
'Type' => 'xri://$xrds*simple',
'Expires' => '2008-04-13T07:34:58Z',
'Service' => array(
@@ -2913,21 +2913,21 @@ class SetTest extends CakeTestCase {
),
'URI' => array(
array(
- 'value' => 'https://ma.gnolia.com/oauth/authorize',
- 'priority' => '10',
+ '@' => 'https://ma.gnolia.com/oauth/authorize',
+ '@priority' => '10',
),
array(
- 'value' => 'http://ma.gnolia.com/oauth/authorize',
- 'priority' => '20'
+ '@' => 'http://ma.gnolia.com/oauth/authorize',
+ '@priority' => '20'
)
)
)
),
array(
- 'version' => '2.0',
+ '@version' => '2.0',
'Type' => 'xri://$xrds*simple',
'Service' => array(
- 'priority' => '10',
+ '@priority' => '10',
'Type' => 'http://oauth.net/discovery/1.0',
'URI' => '#oauth'
)
diff --git a/cake/tests/cases/libs/view/helpers/rss.test.php b/cake/tests/cases/libs/view/helpers/rss.test.php
index b61d6dd32..6b8b36887 100644
--- a/cake/tests/cases/libs/view/helpers/rss.test.php
+++ b/cake/tests/cases/libs/view/helpers/rss.test.php
@@ -35,7 +35,7 @@ class RssHelperTest extends CakeTestCase {
* @return void
*/
function setUp() {
- $controller = null;
+ parent::setUp();
$this->View = new View($controller);
$this->Rss = new RssHelper($this->View);
}
@@ -47,6 +47,7 @@ class RssHelperTest extends CakeTestCase {
* @return void
*/
function tearDown() {
+ parent::tearDown();
unset($this->Rss);
}
@@ -65,15 +66,6 @@ class RssHelperTest extends CakeTestCase {
);
$this->assertTags($result, $expected);
- $result = $this->Rss->document(array('contrived' => 'parameter'));
- $expected = array(
- 'rss' => array(
- 'version' => '2.0'
- ),
- '