20 lines
409 B
PHP
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)
|