1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 20:53:00 +02:00
Files
archived-php-src/ext/standard/tests/assert/bug73303.phpt
2016-11-18 21:41:43 +01:00

24 lines
366 B
PHP

--TEST--
Bug #73303: Scope not inherited by eval in assert()
--FILE--
<?php
class Test {
public $prop;
public function main(){
assert('self::checkCacheKey(get_object_vars($this))');
echo 'Success';
}
private static function checkCacheKey($obj_properties){
return count($obj_properties) == 1;
}
}
$obj = new Test();
$obj->main();
?>
--EXPECT--
Success