-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1297 from sjinks/fcall-diag
Fix misleading diagnostics on exception
- Loading branch information
Showing
2 changed files
with
24 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--TEST-- | ||
Misleading diagnostocs on exception - https://github.com/phalcon/cphalcon/pull/1297 | ||
--SKIPIF-- | ||
<?php include('skipif.inc'); ?> | ||
--FILE-- | ||
<?php | ||
try { | ||
$object = new stdClass(); | ||
$form = new \Phalcon\Forms\Form($object); | ||
$form->add(new \Phalcon\Forms\Element\Text("title")); | ||
echo $form->render('title'); | ||
} | ||
catch (\Exception $e) { | ||
echo $e->getMessage(), PHP_EOL; | ||
} | ||
|
||
echo "OK", PHP_EOL; | ||
?> | ||
--EXPECT-- | ||
A dependency injector container is required to obtain the "escaper" service | ||
OK |