2023-01-23 11:03:31 +01:00

21 lines
326 B
PHP

--TEST--
Verifies that generated null object disallow public function
--FILE--
<?php
require_once __DIR__ . '/init.php';
class Kitchen
{
public $foo = 'bar';
}
$factory = new \ProxyManager\Factory\NullObjectFactory($configuration);
$proxy = $factory->createProxy('Kitchen');
var_dump($proxy->foo);
?>
--EXPECT--
NULL