blob: 41898547650c3497e6678bc7e5423767ecb1b4f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
require "tests.php";
// No new functions
check::functions(array());
// New classes
check::classes(array('SpObject'));
// No new vars
check::globals(array());
class MyObject extends SpObject{
function getFoo() {
return 123;
}
}
$m = new MyObject();
check::equal($m->dummy(), 666, "1st call");
check::equal($m->dummy(), 666, "2st call"); // Locked system
check::done();
|