Skip to content

Commit

Permalink
Fix failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 1, 2014
1 parent 9fdaa44 commit f2970b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Template/Element/exception_stack_trace.ctp
Expand Up @@ -46,7 +46,7 @@ foreach ($error->getTrace() as $i => $stack):
<a href="#" class="stack-frame-args" data-target="stack-args-<?= $i ?>">toggle arguments</a>

<table class="code-excerpt" cellspacing="0" cellpadding="0">
<?php $lineno = $stack['line'] - 4 ?>
<?php $lineno = isset($stack['line']) ? $stack['line'] - 4 : 0 ?>
<?php foreach ($excerpt as $l => $line): ?>
<tr>
<td class="excerpt-number" data-number="<?= $lineno + $l ?>"></td>
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/Error/ExceptionRendererTest.php
Expand Up @@ -484,7 +484,7 @@ public static function exceptionProvider() {
'plugin' => '',
)),
array(
'/<h2>Missing Method in PostsController<\/h2>/',
'/Missing Method in PostsController/',
'/<em>PostsController::index\(\)<\/em>/'
),
404
Expand Down

0 comments on commit f2970b2

Please sign in to comment.