DelegateTest::testListDelegate PHP Метод

testListDelegate() публичный Метод

public testListDelegate ( )
    function testListDelegate()
    {
        $list = $this->sqlmap->queryWithRowDelegate("GetAllAccountsViaResultMap", array($this, 'listHandler'));
        $this->assertSame(5, count($list));
        $this->assertAccount1($list[0]);
        $this->assertSame(1, $list[0]->getID());
        $this->assertSame(2, $list[1]->getID());
        $this->assertSame(3, $list[2]->getID());
        $this->assertSame(4, $list[3]->getID());
        $this->assertSame(5, $list[4]->getID());
    }