mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing test for #2488
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4898 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
0bd1a41329
commit
1a693ccc53
1 changed files with 7 additions and 3 deletions
|
@ -164,10 +164,14 @@ class SetTest extends UnitTestCase {
|
|||
|
||||
function testExtract() {
|
||||
$a = array(
|
||||
array( 'lday' => '20 sales' ),
|
||||
array( 'lday' => '2 sales' )
|
||||
0 => array(
|
||||
'1day' => '20 sales'
|
||||
),
|
||||
1 => array(
|
||||
'1day' => '2 sales'
|
||||
)
|
||||
);
|
||||
$result = Set::extract($a, '{n}.lday');
|
||||
$result = Set::extract($a, '{n}.1day');
|
||||
|
||||
$expected = array(
|
||||
0 => '20 sales',
|
||||
|
|
Loading…
Reference in a new issue