Skip to content

Commit

Permalink
Fix unit test for issue phalcon#12648 - incorrect scope of view varia…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
piit79 authored and ca-asm committed Jan 30, 2018
1 parent 693a94a commit d68f550
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/Mvc/ViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ function () {
*
* @issue 12648
* @author Wojciech Ślawski <[email protected]>
* @author Petr Sedlacek <[email protected]>
* @since 2017-03-17
*/
public function testIssue12648()
Expand All @@ -1040,6 +1041,7 @@ function () {
expect($content)->equals("<html>lol<p>test</p></html>\n");
try {
echo $a_cool_var;
$this->fail('Variable a_cool_var is defined and is set to "' . $a_cool_var . '"');
} catch (\PHPUnit_Framework_Exception $e) {
expect($e->getMessage())->contains("Undefined variable: a_cool_var");
}
Expand Down

0 comments on commit d68f550

Please sign in to comment.