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 1722b8ba30
3 changed files with 38 additions and 3 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');
}