Skip to content
Permalink
Browse files

Don't use deprecated PHP features.

  • Loading branch information...
markstory committed Aug 7, 2017
1 parent 010fa95 commit 634988972f70054bbc4a0a41616028e0234c7175
Showing with 5 additions and 1 deletion.
  1. +5 −1 tests/TestCase/View/Helper/RssHelperTest.php
@@ -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',

0 comments on commit 6349889

Please sign in to comment.
You can’t perform that action at this time.