[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/ocramius/proxy-manager/tests/language-feature-scripts/ -> null-object-public-property-empty.phpt (source)

   1  --TEST--
   2  Verifies that generated null object disallow public function
   3  --FILE--
   4  <?php
   5  
   6  require_once  __DIR__ . '/init.php';
   7  
   8  class Kitchen
   9  {
  10      public $foo = 'bar';
  11  }
  12  
  13  $factory = new \ProxyManager\Factory\NullObjectFactory($configuration);
  14  
  15  $proxy = $factory->createProxy('Kitchen');
  16  
  17  var_dump($proxy->foo);
  18  ?>
  19  --EXPECT--
  20  NULL


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