/**
  * Method to test getByPath().
  *
  * @return void
  *
  * @covers Windwalker\Registry\RegistryHelper::getByPath
  */
 public function testGetByPathWithObject()
 {
     $data = array('flower' => 'sakura', 'olive' => 'peace', 'pos1' => (object) array('sunflower' => 'love'), 'pos2' => new Registry(array('cornflower' => 'elegant')), 'array' => array('A', 'B', 'C'));
     $this->assertEquals('sakura', RegistryHelper::getByPath($data, 'flower'));
     $this->assertEquals('love', RegistryHelper::getByPath($data, 'pos1.sunflower'));
     $this->assertEquals('elegant', RegistryHelper::getByPath($data, 'pos2.cornflower'));
     $this->assertEquals(null, RegistryHelper::getByPath($data, 'pos2.data'));
 }