File manager - Edit - /opt/alt/tests/alt-php82-pecl-oauth_2.0.7-2.el8/tests/bug21426.phpt
Back
--TEST-- Child class of OAuth cannot access its own attributes --FILE-- <?php class Foo extends OAuth { protected $foo = 'bar'; public function getFoo() { return $this->foo; } } $foo = new Foo('key', 'secret'); var_dump($foo->getFoo()); ?> --EXPECTF-- string(3) "bar"
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings