forked from laruence/yaf
-
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.
Fixed misleading error message when providing a string in Yaf_Applica…
…tion construction see laruence#55
- Loading branch information
1 parent
2c11a50
commit c88dfa9
Showing
3 changed files
with
29 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
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,26 @@ | ||
--TEST-- | ||
Fixed misleading error message when providing a string in Yaf_Application construction | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("yaf")) print "skip"; ?> | ||
--INI-- | ||
--FILE-- | ||
<?php | ||
|
||
$config = <<<'INI' | ||
[product] | ||
;CONSTANTS is supported | ||
application.directory = APP_PATH "/application/" | ||
INI; | ||
|
||
try { | ||
$app = new Yaf_Application($config); | ||
$app->run(); | ||
} | ||
catch (Exception $e){ | ||
print $e->getPrevious()->getMessage(); | ||
} | ||
|
||
?> | ||
--CLEAN-- | ||
--EXPECTF-- | ||
Expects a path to *.ini configuration file as parameter |
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