It's now only generated if something to put in it is specified via: %pragma(php) include=... or %pragma(php) code=...
14 lines
396 B
PHP
14 lines
396 B
PHP
<?php
|
|
|
|
require "tests.php";
|
|
|
|
check::functions(array());
|
|
check::classes(array('OverloadedClass','OverloadedPointers','OverloadedGetSet'));
|
|
check::globals(array());
|
|
|
|
$o = new OverloadedGetSet;
|
|
check::equal($o->rw(), 42, "get_set() initial value not 42");
|
|
check::equal($o->rw(7), null, "get_set() failed to set");
|
|
check::equal($o->rw(), 7, "get_set() didn't return back set value");
|
|
|
|
check::done();
|