source: branches/version-2_5-dev/data/module/Compat/tests/function/is_a.phpt @ 20119

Revision 20119, 320 bytes checked in by nanasess, 13 years ago (diff)

module 以下は svn:keywords を除外

  • Property svn:eol-style set to LF
Line 
1--TEST--
2Function -- is_a
3--SKIPIF--
4<?php if (function_exists('is_a')) { echo 'skip'; } ?>
5--FILE--
6<?php
7require_once 'PHP/Compat.php';
8PHP_Compat::loadFunction('is_a');
9
10class WidgetFactory
11{
12    var $oink = 'moo';
13}
14
15$wf = new WidgetFactory();
16
17if (is_a($wf, 'WidgetFactory')) {
18    echo 'true';
19}
20?>
21--EXPECT--
22true
Note: See TracBrowser for help on using the repository browser.