Found via `codespell -q 3 -L ans,anumber,ba,bae,chello,clos,cmo,coo,dout,fo,funktion,goin,inout,methid,nd,nin,nnumber,object,objekt,od,ois,packag,parm,parms,pres,statics,strack,struc,tempdate,te,thru,uint,upto,writen`
22 lines
387 B
PHP
22 lines
387 B
PHP
<?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, "2nd call"); // Locked system
|
|
|
|
check::done();
|