Leitgedanken/msd2/phpBB3/vendor/ocramius/proxy-manager/tests/language-feature-scripts/lazy-loading-ghost-denies-protected-property-isset.phpt
2023-01-23 11:03:31 +01:00

20 lines
409 B
PHP

--TEST--
Verifies that generated lazy loading ghost objects disallow protected property direct isset check
--FILE--
<?php
require_once __DIR__ . '/init.php';
class Kitchen
{
protected $sweets = 'candy';
}
$factory = new \ProxyManager\Factory\LazyLoadingGhostFactory($configuration);
$proxy = $factory->createProxy('Kitchen', function () {});
var_dump(isset($proxy->sweets));
?>
--EXPECT--
bool(false)