| Revision 20119,
320 bytes
checked in by nanasess, 15 years ago
(diff) |
|
module 以下は svn:keywords を除外
|
-
Property svn:eol-style set to
LF
|
| Line | |
|---|
| 1 | --TEST-- |
|---|
| 2 | Function -- is_a |
|---|
| 3 | --SKIPIF-- |
|---|
| 4 | <?php if (function_exists('is_a')) { echo 'skip'; } ?> |
|---|
| 5 | --FILE-- |
|---|
| 6 | <?php |
|---|
| 7 | require_once 'PHP/Compat.php'; |
|---|
| 8 | PHP_Compat::loadFunction('is_a'); |
|---|
| 9 | |
|---|
| 10 | class WidgetFactory |
|---|
| 11 | { |
|---|
| 12 | var $oink = 'moo'; |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | $wf = new WidgetFactory(); |
|---|
| 16 | |
|---|
| 17 | if (is_a($wf, 'WidgetFactory')) { |
|---|
| 18 | echo 'true'; |
|---|
| 19 | } |
|---|
| 20 | ?> |
|---|
| 21 | --EXPECT-- |
|---|
| 22 | true |
|---|
Note: See
TracBrowser
for help on using the repository browser.