diff options
Diffstat (limited to 'ext/spl/tests/SplTempFileObject_constructor_error.phpt')
-rw-r--r-- | ext/spl/tests/SplTempFileObject_constructor_error.phpt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/spl/tests/SplTempFileObject_constructor_error.phpt b/ext/spl/tests/SplTempFileObject_constructor_error.phpt index a6c71717b5..8eb306689d 100644 --- a/ext/spl/tests/SplTempFileObject_constructor_error.phpt +++ b/ext/spl/tests/SplTempFileObject_constructor_error.phpt @@ -2,11 +2,11 @@ SPL SplTempFileObject constructor sets correct defaults when pass 0 arguments --FILE-- <?php -new SplTempFileObject('invalid'); +try { + new SplTempFileObject('invalid'); +} catch (TypeException $e) { + echo $e->getMessage(), "\n"; +} ?> --EXPECTF-- -Fatal error: Uncaught exception 'RuntimeException' with message 'SplTempFileObject::__construct() expects parameter 1 to be integer, string given' in %s -Stack trace: -#0 %s: SplTempFileObject->__construct('invalid') -#1 {main} - thrown in %s +SplTempFileObject::__construct() expects parameter 1 to be integer, string given |