/** * Is a property exists or not. * * @param mixed $offset Offset key. * * @return boolean */ public function offsetExists($offset) { return $this->state->exists($offset); }
/** * Check if a registry path exists. * * @param string $path Registry path (e.g. joomla.content.showauthor) * * @return boolean * * @since 1.0 */ public function exists($path) { return $this->registry->exists($path); }
/** * Method to test exists(). * * @return void * * @covers Windwalker\Registry\Registry::exists */ public function testExists() { $this->assertFalse($this->instance->exists('rose')); $this->assertTrue($this->instance->exists('flower')); }