Permalink
Browse files

use isset

  • Loading branch information...
1 parent 3cb04c7 commit 2b6cb58f74377c94911f73e0282a27cb3a3d4681 @c9s committed Sep 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/PHPUnit/TestMore.php
@@ -15,7 +15,7 @@ function get_testcase_object()
{
$objs = debug_backtrace( DEBUG_BACKTRACE_PROVIDE_OBJECT );
foreach($objs as $o) {
- if ( array_key_exists('object', $o) && $o['object'] instanceof PHPUnit_Framework_TestCase ) {
+ if ( isset($o['object']) && $o['object'] instanceof PHPUnit_Framework_TestCase ) {
return $o['object'];
}
}

0 comments on commit 2b6cb58

Please sign in to comment.