summaryrefslogtreecommitdiff
path: root/tests/testobj
blob: bc6f5fd2fe434268b35ed741a042458980395ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?
define("endl","\n");

//if (1) {
class foobar {
	function foobar() {
		$this->initialized = 1;
	}
};

class barbara extends foobar {

};
//}

$name = "foobar";
$foo = new $name; // or die("Unable to construct foobar\n");
//print $foo->initialized;

$boo = new barbara;
print get_class($foo).endl;
print get_parent_class($foo).endl;
print get_class($boo).endl;
print get_parent_class($boo).endl;
print method_exists($foo,"foobar").endl;
print method_exists($boo,"foobar").endl;
print method_exists($boo,"barbara").endl;
//$word = new COm("word.application");
//$word->visible = true;
//sleep(5);
//$word->quit();