summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/mixed/casting/mixed_cast_error.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/type_declarations/mixed/casting/mixed_cast_error.phpt')
-rw-r--r--Zend/tests/type_declarations/mixed/casting/mixed_cast_error.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/type_declarations/mixed/casting/mixed_cast_error.phpt b/Zend/tests/type_declarations/mixed/casting/mixed_cast_error.phpt
new file mode 100644
index 0000000000..416bddddc2
--- /dev/null
+++ b/Zend/tests/type_declarations/mixed/casting/mixed_cast_error.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Test that a mixed casting is not supported
+--FILE--
+<?php
+
+$foo = (mixed) 12;
+
+?>
+--EXPECTF--
+Parse error: syntax error, unexpected '12' (T_LNUMBER) in %s on line %d