xref: /PHP-7.0/Zend/tests/class_exists_003.phpt (revision 478e5d1d)
1--TEST--
2Checking if exists interface, trait, abstract and final class
3--FILE--
4<?php
5
6interface a { }
7
8abstract class b { }
9
10final class c { }
11
12trait d {}
13
14var_dump(class_exists('a'));
15var_dump(class_exists('b'));
16var_dump(class_exists('c'));
17var_dump(class_exists('d'));
18
19?>
20--EXPECT--
21bool(false)
22bool(true)
23bool(true)
24bool(false)
25