making deep set/get possible using dot notation

This commit is contained in:
Reza
2015-11-13 08:13:11 +03:30
parent 210041f1b2
commit b53b5e93d9
3 changed files with 60 additions and 18 deletions

View File

@ -61,6 +61,9 @@ class Test extends PHPUnit_Framework_TestCase
{
$ary = new Ary();
$this->assertEquals($ary[0], null);
$ary = new Ary(['x' => ['xx' => ['m' => 'xxx']]]);
$this->assertEquals($ary->get('x.xx.m'), 'xxx');
}