Skip to content

Commit

Permalink
Don't use deprecated PHP features.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 7, 2017
1 parent 010fa95 commit 6349889
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/TestCase/View/Helper/RssHelperTest.php
Expand Up @@ -260,7 +260,11 @@ public function testItems()
['title' => 'title3', 'guid' => 'http://www.example.com/guid3', 'link' => 'http://www.example.com/link3', 'description' => 'description3']
];

$result = $this->Rss->items($items, create_function('$v', '$v[\'title\'] = $v[\'title\'] . \'-transformed\'; return $v;'));
$result = $this->Rss->items($items, function ($v) {
$v['title'] = $v['title'] . '-transformed';

return $v;
});
$expected = [
'<item',
'<title', 'title1-transformed', '/title',
Expand Down

0 comments on commit 6349889

Please sign in to comment.