21 lines
425 B
PHP
21 lines
425 B
PHP
--TEST--
|
|
Verifies that generated access interceptors disallow protected property direct write
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once __DIR__ . '/init.php';
|
|
|
|
class Kitchen
|
|
{
|
|
protected $sweets;
|
|
}
|
|
|
|
$factory = new \ProxyManager\Factory\AccessInterceptorScopeLocalizerFactory($configuration);
|
|
|
|
$proxy = $factory->createProxy(new Kitchen());
|
|
|
|
$proxy->sweets = 'stolen';
|
|
?>
|
|
--EXPECTF--
|
|
%SFatal error: Cannot %s property%sin %s on line %d
|