/** * calling the ambiguous method update() of class QWidget which takes either a QRect or a QRegion as argument * <code> * QWidget->update( new QRect( 1, 2, 3, 4 ) ); * QWidget->update( new QRegion( 1, 2, 3, 4, QRegion::Rectangle ) ); * </code> */ function testAmbiguousMethodCallObject() { echo "\ntesting ambiguous method call with different objects as arguments"; $w = new QWidget(); $w->update(1, 2, 3, 4); $w->update(new QRect(1, 2, 3, 4)); $w->update(new QRegion(1, 2, 3, 4, QRegion::Rectangle)); echo " passed"; }