[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/ocramius/proxy-manager/tests/language-feature-scripts/ -> lazy-loading-ghost-allows-inexisting-magic-property-read.phpt (source)

   1  --TEST--
   2  Verifies that generated lazy loading ghost objects disallow reading non-existing properties via direct read
   3  --FILE--
   4  <?php
   5  
   6  require_once  __DIR__ . '/init.php';
   7  
   8  class Kitchen
   9  {
  10      private $sweets;
  11  
  12      public function & __get($name)
  13      {
  14          return $name;
  15      }
  16  }
  17  
  18  $factory = new \ProxyManager\Factory\LazyLoadingGhostFactory($configuration);
  19  
  20  $proxy = $factory->createProxy('Kitchen', function () {});
  21  
  22  echo $proxy->nonExisting;
  23  ?>
  24  --EXPECTF--
  25  nonExisting


Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1