mirror of
https://github.com/php-win-ext/php-lua.git
synced 2026-03-24 09:02:13 +01:00
19 lines
380 B
PHP
19 lines
380 B
PHP
--TEST--
|
|
Lua::include() with error codes
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("lua")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$filename = __FILE__.'.tmp';
|
|
|
|
$l = new lua();
|
|
try {
|
|
$ret = $l->include($filename);
|
|
} catch (LuaException $e) {
|
|
assert($e->getCode() == LUA_ERRFILE);
|
|
echo "\n".$e->getMessage();
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
cannot open %s012.php.tmp: No such file or directory
|