📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 15:48:22
📂
/ (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.undeclaredMethod.hints.phpt
Writable
<?php /** * Test: Nette\SmartObject undeclared method hints. */ declare(strict_types=1); use Tester\Assert; require __DIR__ . '/../bootstrap.php'; class TestClass { use Nette\SmartObject; private function methodO() { } public function methodO2() { } private static function methodS() { } public static function methodS2() { } } $obj = new TestClass; Assert::exception( fn() => $obj->abc(), Nette\MemberAccessException::class, 'Call to undefined method TestClass::abc().', ); Assert::exception( fn() => $obj->method(), Nette\MemberAccessException::class, 'Call to undefined method TestClass::method(), did you mean methodO2()?', ); Assert::exception( fn() => TestClass::abc(), Nette\MemberAccessException::class, 'Call to undefined static method TestClass::abc().', ); Assert::exception( fn() => TestClass::method(), Nette\MemberAccessException::class, 'Call to undefined static method TestClass::method(), did you mean methodS2()?', ); if (extension_loaded('gd')) { Assert::exception( fn() => Nette\Utils\Image::fromBlank(1, 1)->filledElippse(), Nette\MemberAccessException::class, 'Call to undefined method Nette\Utils\Image::filledElippse(), did you mean filledEllipse()?', ); }
💾 Save Changes
❌ Cancel