<commit_before>--TEST--
Verifies that generated lazy loading value holders disallow private property direct unset
--FILE--
<?php

require_once __DIR__ . '/init.php';

class Kitchen
{
    private $sweets;
}

$factory = new \ProxyManager\Factory\LazyLoadingValueHolderFactory($configuration);

$proxy = $factory->createProxy('Kitchen', function (& $wrapped, $proxy, $method, array $parameters, & $initializer) {
    $initializer = null;
    $wrapped     = new Kitchen();
});

unset($proxy->sweets);
?>
--EXPECTF--
%SFatal error: Cannot access private property %s::$sweets in %s on line %d<commit_msg>Fixed fatal error string mismatch in HHVM disallowed unset (virtual proxy)<commit_after>--TEST--
Verifies that generated lazy loading value holders disallow private property direct unset
--FILE--
<?php

require_once __DIR__ . '/init.php';

class Kitchen
{
    private $sweets;
}

$factory = new \ProxyManager\Factory\LazyLoadingValueHolderFactory($configuration);

$proxy = $factory->createProxy('Kitchen', function (& $wrapped, $proxy, $method, array $parameters, & $initializer) {
    $initializer = null;
    $wrapped     = new Kitchen();
});

unset($proxy->sweets);
?>
--EXPECTF--
%SFatal error: Cannot %s property %s on line %d
{'fraction_non_alphanumeric': 0.13902439024390245, 'fraction_numerical': 0.0, 'mean_word_length': 4.646788990825688, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5456425', 'n_tokens_mistral': 376, 'n_tokens_neox': 369, 'n_words': 114}