public function _test_indirect_double() { $messages = array('Trying to set a property of a property of a wrapped object.'); $expected_exception = null; $o = $this->target; $callback = function () use($o) { $wrapper = new h\object\wrapper(); $wrapper->set_impl($o); $wrapper->virtual = (object) array('indirect' => 'value'); $wrapper->virtual->indirect = 'other'; return $wrapper->virtual->indirect !== 'value' && $wrapper->virtual->indirect === 'other'; }; $this->add_test($callback, $messages, $expected_exception); }
protected function is_supported(h\object\base $impl) { return parent::is_supported($impl) && ($impl instanceof h\uri\absolute_path || $impl instanceof h\uri\net_path || $impl instanceof h\uri\empty_path || $impl instanceof h\uri\hierarchical_part); }
protected function is_supported(h\object\base $impl) { return parent::is_supported($impl) && ($impl instanceof h\inet\ip || $impl instanceof h\inet\host); }
protected function is_supported(h\object\base $impl) { return parent::is_supported($impl) && $impl instanceof h\uri\hierarchical_part; }