echo "property 'bool': " . $afoo->bool . "\n";
echo "property 'boolean': " . $afoo->boolean . "\n";
echo "property 'int': " . $afoo->int . "\n";
echo "property 'integer': " . $afoo->integer . "\n";
echo "property 'float': " . $afoo->float . "\n";
echo "property 'real': " . $afoo->real . "\n";
echo "property 'double': " . $afoo->double . "\n";
echo "property 'string': " . $afoo->string . "\n";
echo "property 'object': " . $afoo->object . "\n";
// php disallows:  $afoo->include();
// php disallows:  $afoo->include_once();
// php disallows:  $afoo->require();
// php disallows:  $afoo->require_once();
// php disallows:  $afoo->continue();
$afoo->define();
$afoo->parent();
// php disallows:  $afoo->exit();
$afoo->false();
$afoo->true();
// php disallows:  $afoo->echo();
// php disallows:  $afoo->print();
// php disallows:  $afoo->if();
// php disallows:  $afoo->else();
// php disallows:  $afoo->elseif();
// php disallows:  $afoo->while();
// php disallows:  $afoo->do();
// php disallows:  $afoo->or();
// php disallows:  $afoo->xor();
// php disallows:  $afoo->and();
// php disallows:  $afoo->endwhile();
// php disallows:  $afoo->endif();
Exemple #2
0
 function testUnknownMethod()
 {
     echo "\ntesting derivated object";
     $date = new QObject();
     $foo = new foo($date);
     $foo->parent();
     $foo->testMethod();
     //	    $foo->___();	// method not defined
     echo " passed";
 }