Esempio n. 1
0
 public function test06()
 {
     $searchRA = ['name' => 'greg', 'record' => ['age' => 100, 'amount' => 26.58, 'source' => 'pension']];
     $this->assertEquals('not found', Util::array_get('record.lazy', $searchRA, 'not found'));
     $this->assertEquals($searchRA['record'], Util::array_search_and_replace('record.lazy', $searchRA, 'not found'));
     $this->assertEquals(26.58, Util::array_get('record.amount', $searchRA, 'not found'));
     //$this->assertEquals('not found', Util::search('not.there', $searchRA, 'not found'));
     //die_dump([$resultSearch, $resultGet]);
 }