<commit_before>--TEST--
Verifies that generated remote object can call public property
--FILE--
<?php

require_once __DIR__ . '/init.php';

use ProxyManager\Factory\RemoteObject\AdapterInterface;

interface FooServiceInterface
{
    public function fooBar();
}

class Foo implements FooServiceInterface
{
    public $foo = "baz";
    
    public function fooBar()
    {
        return 'bar';
    }
}

class CustomAdapter implements AdapterInterface
{
    public function call($wrappedClass, $method, array $params = [])
    {
        return 'baz';
    }
}

$factory = new \ProxyManager\Factory\RemoteObjectFactory(new CustomAdapter(), $configuration);
/* @var $proxy FooServiceInterface */
$proxy   = $factory->createProxy(FooServiceInterface::class);

var_dump($proxy->fooBar());
var_dump($proxy->unknown());
?>
--EXPECTF--
%Sstring(3) "baz"

%SFatal error:%sCall to undefined method %s::unknown%S in %s on line %d<commit_msg>#241 #271 - simplifying assertions, removing XDebug dumps, as they keep changing<commit_after>--TEST--
Verifies that generated remote object can call public property
--FILE--
<?php

require_once __DIR__ . '/init.php';

use ProxyManager\Factory\RemoteObject\AdapterInterface;

interface FooServiceInterface
{
    public function fooBar();
}

class Foo implements FooServiceInterface
{
    public $foo = "baz";
    
    public function fooBar()
    {
        return 'bar';
    }
}

class CustomAdapter implements AdapterInterface
{
    public function call($wrappedClass, $method, array $params = [])
    {
        return 'baz';
    }
}

$factory = new \ProxyManager\Factory\RemoteObjectFactory(new CustomAdapter(), $configuration);
/* @var $proxy FooServiceInterface */
$proxy   = $factory->createProxy(FooServiceInterface::class);

echo $proxy->fooBar() . "\n";
$proxy->unknown();
?>
--EXPECTF--
baz

%AFatal error:%sCall to undefined method %s::unknown%S in %A
{'fraction_non_alphanumeric': 0.12976694915254236, 'fraction_numerical': 0.003707627118644068, 'mean_word_length': 4.077956989247312, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1377399', 'n_tokens_mistral': 573, 'n_tokens_neox': 553, 'n_words': 151}