Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 protected function is_supported(h\object\base $impl)
 {
     return parent::is_supported($impl) && ($impl instanceof h\inet\ip || $impl instanceof h\inet\host);
 }
Ejemplo n.º 4
0
 protected function is_supported(h\object\base $impl)
 {
     return parent::is_supported($impl) && $impl instanceof h\uri\hierarchical_part;
 }