diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2017-02-02 00:23:11 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-02-03 18:52:57 +0100 |
commit | 7a73c5f6bba386e0d82dd467e9dacceb10b851e3 (patch) | |
tree | 85b762e4724e5f5b03ae629bd241a7838275cfbc /Zend/tests/unset_cast_deprecated.phpt | |
parent | 162aa1a5fc96b3dd7e3420c6882607b361801fbd (diff) | |
download | php-git-7a73c5f6bba386e0d82dd467e9dacceb10b851e3.tar.gz |
Deprecate (unset)
Pecularily, there wasn't a single test for the (unset) cast...
Diffstat (limited to 'Zend/tests/unset_cast_deprecated.phpt')
-rw-r--r-- | Zend/tests/unset_cast_deprecated.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/unset_cast_deprecated.phpt b/Zend/tests/unset_cast_deprecated.phpt new file mode 100644 index 0000000000..6744c85f02 --- /dev/null +++ b/Zend/tests/unset_cast_deprecated.phpt @@ -0,0 +1,14 @@ +--TEST-- +The (unset) cast is deprecated +--FILE-- +<?php + +$x = 1; +var_dump((unset) $x); +var_dump($x); + +?> +--EXPECTF-- +Deprecated: The (unset) cast is deprecated in %s on line %d +NULL +int(1) |