public function testStoreTypes()
{
$rootNode = $this->session->getRootNode();
$node = $rootNode->addNode('testStoreTypes');
$data = array(array('string_1', 'string_1', PropertyType::STRING), array('string_2', 'string_1', PropertyType::STRING), array('long_1', '10', PropertyType::LONG), array('long_2', '20', PropertyType::LONG), array('decimal_1', '10.0', PropertyType::DECIMAL), array('decimal_2', '20.0', PropertyType::DECIMAL));
foreach ($data as $propertyData) {
$node->setProperty($propertyData[0], $propertyData[1], $propertyData[2]);
}
$this->session->save();
$this->session->refresh(false);
foreach ($data as $propertyData) {
list($propName) = $propertyData;
$this->assertTrue($node->hasProperty($propName), 'Node has property "' . $propName . '"');
}
}