📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 14:38:17
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
vendor
/
nette
/
utils
/
tests
/
Utils
📍 /home/orkouolp/web/testing.orkobd/laravel/vendor/nette/utils/tests/Utils
🔄 Refresh
✏️
Editing: SmartObject.referenceProperty.phpt
Writable
<?php /** * Test: Nette\SmartObject reference to property. */ declare(strict_types=1); use Tester\Assert; require __DIR__ . '/../bootstrap.php'; /** * @property string $foo */ class TestClass { use Nette\SmartObject; private $foo; public function getFoo() { return $this->foo; } public function setFoo($foo) { $this->foo = $foo; } } $obj = new TestClass; $obj->foo = 'hello'; @$x = &$obj->foo; $x = 'changed by reference'; Assert::same('hello', $obj->foo);
💾 Save Changes
❌ Cancel