Extends
lithium\test\UnitSource
public function testDotPath() {
$data = array(
'foo' => array(
'bar' => array(
'baz' => 123
)
),
'some' => array(
'path' => true
)
);
Environment::set('dotPathIndex', $data);
$this->assertEqual(123, Environment::get('dotPathIndex.foo.bar.baz'));
$this->assertEqual($data['foo'], Environment::get('dotPathIndex.foo'));
$this->assertTrue(Environment::get('dotPathIndex.some.path'));
}