View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000153||Xdebug||Uncategorized||public||2005-10-07 09:18||2020-03-12 17:07|
|Description||I am´trying to solve this PHPUnit issue|
The problem is that the sourcefile that contains the test case class is include()d within a method. Thus any global variable defined in the source is local to the PHPUnit method that calls include().
The only solution I see would be a PHP function like get_declared_vars() that returns the names of all variables visible in the current scope. I could then call this function before and after the inclusion and compare the two results to see which new variables came from the included file and copy them to $GLOBALS.
This is a request to add a get_declared_vars() function to Xdebug.
|Tags||No tags attached.|