Changeset 19791
- Timestamp:
- 07/01/09 16:29:39 (4 years ago)
- Files:
-
- tools/lime/trunk/lib/lime.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/lime/trunk/lib/lime.php
r19724 r19791 505 505 protected function find_caller($traces) 506 506 { 507 // find the first call to a method of an object that is an instance of lime_test 508 $t = array_reverse($traces); 509 foreach ($t as $trace) 510 { 511 if (isset($trace['object']) && $trace['object'] instanceof lime_test) 512 { 513 return array($trace['file'], $trace['line']); 514 } 515 } 516 517 // return the first call 507 518 $last = count($traces) - 1; 508 509 519 return array($traces[$last]['file'], $traces[$last]['line']); 510 520 }