/** * inheritance, calling a nonstatic parents method from withing an overwritten nonstatic method: * the method blockSignals defined in class foo calls the method blockSignals() of it's parent class * <code>foo::blockSignals() calls QObject::blockSignals()</code> */ function testCallParentQtMethod() { echo "\ntesting parent::blockSignals() within foo::blockSignals()"; $o = new QObject(); $p = new foo($o); // set blockSignals to true, so we can test it $p->blockSignals(true); $this->assertTrue($p->blockSignals(true), "Could not call a parent Qt method!"); echo " passed"; }