forked from phalcon/cphalcon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unit test for issue phalcon#12648 - incorrect scope of view varia…
…bles
- Loading branch information
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1022,6 +1022,7 @@ function () { | |
* | ||
* @issue 12648 | ||
* @author Wojciech Ślawski <[email protected]> | ||
* @author Petr Sedlacek <[email protected]> | ||
* @since 2017-03-17 | ||
*/ | ||
public function testIssue12648() | ||
|
@@ -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"); | ||
} | ||
|