<?php
namespace Liaison\Test;
class DotNotation extends \Taeluf\Tester {
public function testTopLevelDotToNestedArray(){
$iArray = [
'black.lives.matter'=>[
'Absolutely!'
],
'all.lives.matter'=>[
'Of course, though "All lives matter is a protest to my protest. What kinda shit is that!?" - Joyner Lucas in I\'m Not Racist'
]
];
$tArray = [
'black'=>[
'lives'=>[
'matter'=>[
'Absolutely!'
]
]
],
'all'=>[
'lives'=>[
'matter'=>[
'Of course, though "All lives matter is a protest to my protest. What kinda shit is that!?" - Joyner Lucas in I\'m Not Racist'
]
]
]
];
$aArray = \Liaison\Utility\DotNotation::nestedFromDotted($iArray);
return true
&& $this->compare($tArray, $aArray)
;
}
}
DotNotation::runAll();