Annotation of embedaddon/php/ext/standard/tests/class_object/interface_exists_variation4.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test interface_exists() function : test autoload default value 
        !             3: --FILE--
        !             4: <?php
        !             5: /* Prototype  : bool interface_exists(string classname [, bool autoload])
        !             6:  * Description: Checks if the class exists 
        !             7:  * Source code: Zend/zend_builtin_functions.c
        !             8:  * Alias to functions: 
        !             9:  */
        !            10: 
        !            11: echo "*** Testing interface_exists() : test autoload default value ***\n";
        !            12: 
        !            13: function __autoload($class_name) {
        !            14:     require_once $class_name . '.inc';
        !            15: }
        !            16: 
        !            17: 
        !            18: var_dump(interface_exists("AutoInterface"));
        !            19: 
        !            20: echo "\nDONE\n";
        !            21: 
        !            22: ?>
        !            23: --EXPECTF--
        !            24: *** Testing interface_exists() : test autoload default value ***
        !            25: bool(true)
        !            26: 
        !            27: DONE

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>