예제 #1
0
function testCircle(Circle $circle)
{
    $circle->setWidth(2);
    assert('$circle->getWidth() == 2');
    $circle->setHeight(4);
    assert('$circle->getHeight() == 4');
    assert('$circle->getWidth() == $circle->getHeight()');
    // kruznica garantuje, ze sirka a vyska su rovnake
}