/** * Test CustomTypeHandler Oui/Non */ function testInsertInlineCustomTypeHandlerV2() { $this->initScript('other-init.sql'); $this->initScript('account-init.sql'); $other = new Other(); $other->setInt(99); $other->setLong(1966); $other->setBool(true); $other->setBool2(false); $this->sqlmap->Insert("InsertInlineCustomTypeHandlerV2", $other); $anOther = $this->sqlmap->QueryForObject("SelectByInt", 99); $this->assertNotNull($anOther); $this->assertIdentical(99, (int) $anOther->getInt()); $this->assertIdentical(1966, (int) $anOther->getLong()); $this->assertIdentical(true, (bool) $anOther->getBool()); $this->assertIdentical(false, (bool) $anOther->getBool2()); }