:: **Zploit** v1.0 | Current Path: **/opt/alt/tests/alt-php85-pecl-oauth_2.0.10-1.el8/tests/**
:: Editing File: bug21426.phpt
--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"