File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / class_exists_003.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (12 years, 4 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Checking if exists interface, abstract and final class
--FILE--
<?php

interface a { }

abstract class b { }

final class c { }

var_dump(class_exists('a'));
var_dump(class_exists('b'));
var_dump(class_exists('c'));

?>
--EXPECT--
bool(false)
bool(true)
bool(true)

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