public function testArrayDelimIsset() { $array = ['test' => ['test1' => 1, 'test2' => 2], 'obj' => (object) ['test1' => '11', 'test2' => '22']]; $this->assertTrue(delim_isset($array, 'test.test1')); $this->assertFalse(delim_isset($array, 'test.test3')); $this->assertTrue(delim_isset($array, 'obj.test1')); $this->assertFalse(delim_isset($array, 'obj.test3')); }
public function offsetExists($path) { return delim_isset($this->data, $path, $this->getDelimiter()); }