diff options
author | Marcus Boerger <helly@php.net> | 2004-03-27 15:49:23 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-03-27 15:49:23 +0000 |
commit | c9c13a733666df7dbfb28155d1f0ef4ffb160c2f (patch) | |
tree | aa24945de3b16468f812c0d6a87a5d1c6ef27949 /tests | |
parent | 63338975d41d3a2d66f4adc4e02403908f72afc4 (diff) | |
download | php-git-c9c13a733666df7dbfb28155d1f0ef4ffb160c2f.tar.gz |
Add new test
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/classes/type_hinting_002.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/classes/type_hinting_002.phpt b/tests/classes/type_hinting_002.phpt new file mode 100755 index 0000000000..4cb75b1b8f --- /dev/null +++ b/tests/classes/type_hinting_002.phpt @@ -0,0 +1,17 @@ +--TEST-- +ZE2 class type hinting non existing class +--SKIPIF-- +<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?> +--FILE-- +<?php + +class Foo { + function a(NonExisting $foo) {} +} + +$o = new Foo; +$o->a($o); +?> +--EXPECTF-- + +Fatal error: Class 'NonExisting' not found in %stype_hinting_002.php on line %d |