$this->assertType($expectedPhpType,$actualDbValue,"The expected type from the conversion to and back from the database should be ".$expectedPhpType);
if($originalValueinstanceof\DateTime){
$this->assertInstanceOf($expectedPhpType,$actualDbValue,"The expected type from the conversion to and back from the database should be ".$expectedPhpType);
}else{
$this->assertInternalType($expectedPhpType,$actualDbValue,"The expected type from the conversion to and back from the database should be ".$expectedPhpType);
}
if($type!=="datetimetz"){
$this->assertEquals($originalValue,$actualDbValue,"Conversion between values should produce the same out as in value, but doesnt!");