diff options
author | Felipe Pena <felipe@php.net> | 2008-05-12 13:30:50 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-05-12 13:30:50 +0000 |
commit | c065d7e7e7174554a966ee32039cf5512c769f38 (patch) | |
tree | d5e12819a24610f1859aa07624191f2bf6ced037 /Zend/tests/class_alias_002.phpt | |
parent | 7416b0cd91dd214485e51351cca67734dd281f19 (diff) | |
download | php-git-c065d7e7e7174554a966ee32039cf5512c769f38.tar.gz |
- New tests
Diffstat (limited to 'Zend/tests/class_alias_002.phpt')
-rw-r--r-- | Zend/tests/class_alias_002.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/class_alias_002.phpt b/Zend/tests/class_alias_002.phpt new file mode 100644 index 0000000000..9601cb25e8 --- /dev/null +++ b/Zend/tests/class_alias_002.phpt @@ -0,0 +1,12 @@ +--TEST-- +Trying redeclare class with class_alias() +--FILE-- +<?php + +class foo { } + +class_alias('foo', 'FOO'); + +?> +--EXPECTF-- +Warning: Cannot redeclare class FOO in %s on line %d |