1--TEST-- 2Bug #73303: Scope not inherited by eval in assert() 3--FILE-- 4<?php 5 6class Test { 7 public $prop; 8 9 public function main(){ 10 assert('self::checkCacheKey(get_object_vars($this))'); 11 echo 'Success'; 12 } 13 private static function checkCacheKey($obj_properties){ 14 return count($obj_properties) == 1; 15 } 16} 17 18$obj = new Test(); 19$obj->main(); 20 21?> 22--EXPECTF-- 23Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d 24Success 25