private static function PHPUnit_Util_Filter::frameExists in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Util/Filter.php \PHPUnit_Util_Filter::frameExists()
@since Method available since Release 3.3.2
Parameters
array $trace:
string $file:
int $line:
Return value
bool
1 call to PHPUnit_Util_Filter::frameExists()
- PHPUnit_Util_Filter::getFilteredStacktrace in vendor/
phpunit/ phpunit/ src/ Util/ Filter.php - Filters stack frames from PHPUnit classes.
File
- vendor/
phpunit/ phpunit/ src/ Util/ Filter.php, line 93
Class
- PHPUnit_Util_Filter
- Utility class for code filtering.
Code
private static function frameExists(array $trace, $file, $line) {
foreach ($trace as $frame) {
if (isset($frame['file']) && $frame['file'] == $file && isset($frame['line']) && $frame['line'] == $line) {
return true;
}
}
return false;
}