Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1866 → Rev 2030

/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-ref-badbdnffnn.test.php
New file
0,0 → 1,3
<?php
// test détermination espèce avec mauvais bdnffnn mais bon référentiel
return array('data' => array('Espèce' => 'bdtfx:nn:72475000', 'nom_referentiel' => 'bdtfx'));
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece.test.php
New file
0,0 → 1,3
<?php
// test détermination espèce, simple avec erreur, sans référentiel
return array('data' => array('Espèce' => 'heliotropium europaeum Xxumm'));
/branches/v1.9-echenilloir/jrest/tests/phptests/transmission.result.php
New file
0,0 → 1,6
<?php
date_default_timezone_set("Europe/Paris");
return array (
'transmission' => 'oui',
'date_transmission' => date("Y-m-d H:i:s") // attention au décallage (1sec par exemple)
);
/branches/v1.9-echenilloir/jrest/tests/phptests/date-pre-1900.test.php
New file
0,0 → 1,4
<?php
// test date format texte, pré 1900
// il est normal que ce test faillisse avec une arch 32bits (ou un xampp 32bits)
return array('data' => array('Date' => '23/06/1811'));
/branches/v1.9-echenilloir/jrest/tests/phptests/ref-nonom-nonum.test.php
New file
0,0 → 1,9
<?php
/* test détermination setting du référentiel:
Théorie, valable pour insert et update:
- pas de nom_sel = pas de num_nom
MAIS:
- pas de nom_sel = pas de référentiel (NULL)
- nom_sel mais pas de num_nom = référentiel = "autre"
*/
return array('data' => array('nom_referentiel' => 'bdtfx'));
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-bdnffnn.test.php
New file
0,0 → 1,3
<?php
// test détermination espèce avec bdnffnn
return array('data' => array('Espèce' => 'bdtfx:nn:72475'));
/branches/v1.9-echenilloir/jrest/tests/phptests/colonne-abbrev.test.php
New file
0,0 → 1,3
<?php
// test détermination espèce avec bdnffnn
return array('data' => array('espece' => 'blah'));
/branches/v1.9-echenilloir/jrest/tests/phptests/ref-nom-nonum.result.php
New file
0,0 → 1,0
<?php return array ('nom_sel' => 'blah','nom_referentiel' => 'autre');
/branches/v1.9-echenilloir/jrest/tests/phptests/commentaire-quote.test.php
New file
0,0 → 1,3
<?php
// test commentaire avec quotes et double-quotes
return array('data' => array('notes' => "test quote : a'’\"a"));
/branches/v1.9-echenilloir/jrest/tests/phptests/01-sample.test.php
New file
0,0 → 1,14
<?php
/*
Clefs prises en compte:
 
* dumpCols = 'standard,...':
colonnes (standard, avancé, ...) : '
* cmpCols' = [+]date,transmis,.. |-date,id_observation,... |"def"
Champs à comparer, ou à exclure de la comparaison. Par défaut: "def" = les champs de "data".
* warn = \d
nombre de warnings attendus
*/
// sample test
return array('cmpCols' => 'Date', // colonne à comparer
'data' => array('ordre' => 1, 'Date' => '23/06/1991', 'rien' => 'rien'));
/branches/v1.9-echenilloir/jrest/tests/phptests/date-format-revert.result.php
New file
0,0 → 1,3
<?php return array (
'date_observation' => '1991/01/23',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-ref-badbdnffnn.result.php
New file
0,0 → 1,4
<?php return array (
'nom_sel' => 'bdtfx:nn:72475000',
'nom_referentiel' => 'autre',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/accents.test.php
New file
0,0 → 1,3
<?php
// test date format texte, pré 1900
return array('data' => array('Lieu-dit' => 'œufs', 'Station' => 'Ératostène', 'Milieu' => 'Byørg'));
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece.result.php
New file
0,0 → 1,8
<?php return array (
'nom_sel' => 'heliotropium europaeum Xxumm',
'nom_sel_nn' => '31468',
'nom_ret' => 'Heliotropium europaeum L.',
'nom_ret_nn' => '31468',
'nt' => '1382',
'famille' => 'Boraginaceae',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-insee.test.php
New file
0,0 → 1,3
<?php
// test localisation nom (cp sur deux chiffres)
return array('data' => array('ce_zone_geo' => 'INSEE-C:34172'));
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-detect.result.php
New file
0,0 → 1,4
<?php return array (
'zone_geo' => 'Marseille',
'ce_zone_geo' => '13',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/date-post-1900.result.php
New file
0,0 → 1,3
<?php return array (
'date_observation' => '1991/01/23',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/latitude-virgule.test.php
New file
0,0 → 1,3
<?php
// test latitude, séparateur décimales = virgule
return array('data' => array('latitude' => '3,3'));
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-cp-seul.result.php
New file
0,0 → 1,3
<?php return array (
'zone_geo' => 'Montpellier',
'ce_zone_geo' => '34');
/branches/v1.9-echenilloir/jrest/tests/phptests/date-pre-1900.result.php
New file
0,0 → 1,3
<?php return array (
'date_observation' => '1811/06/23',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-comm-PHPExcel-double.test.php
New file
0,0 → 1,4
<?php
// PHPExcel peut caster ZONE_GEO en (double) et stripper le leading '0'
// d'où problème de détection du code commune
return array('data' => array('Commune' => '06161'));
/branches/v1.9-echenilloir/jrest/tests/phptests/ref-nonom-nonum.result.php
New file
0,0 → 1,0
<?php return array ( 'nom_referentiel' => 'autre' );
/branches/v1.9-echenilloir/jrest/tests/phptests/transmission.test.php
New file
0,0 → 1,4
<?php
// test transmission
return array('dumpCols' => 'avance',
'data' => array('Transmis' => 'OuI'));
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-nom-cp2.test.php
New file
0,0 → 1,3
<?php
// test localisation nom (cp sur deux chiffres)
return array('data' => array('Commune' => 'Villers-lès-Nancy (54)'));
/branches/v1.9-echenilloir/jrest/tests/phptests/colonne-abbrev.result.php
New file
0,0 → 1,3
<?php return array (
'nom_sel' => 'blah'
);
/branches/v1.9-echenilloir/jrest/tests/phptests/ref-nom-nonum.test.php
New file
0,0 → 1,9
<?php
/* test détermination setting du référentiel:
Théorie, valable pour insert et update:
- pas de nom_sel = pas de num_nom
MAIS:
- pas de nom_sel = pas de référentiel (NULL)
- nom_sel mais pas de num_nom = référentiel = "autre"
*/
return array('data' => array('nom_referentiel' => 'bdtfx', 'nom_sel' => 'blah'));
/branches/v1.9-echenilloir/jrest/tests/phptests/commentaire-quote.result.php
New file
0,0 → 1,3
<?php return array (
'commentaire' => 'test quote : a\'’"a',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-cp-PHPExcel-double.result.php
New file
0,0 → 1,3
<?php return array (
'zone_geo' => 'Villeneuve-Loubet',
'ce_zone_geo' => '06');
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-bdnffnt.result.php
New file
0,0 → 1,8
<?php return array (
'nom_sel' => 'Viola riviniana f. riviniana',
'nom_sel_nn' => '72478',
'nom_ret' => 'Viola riviniana f. riviniana',
'nom_ret_nn' => '72478',
'nt' => '5757',
'famille' => 'Violaceae',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/latitude-point.test.php
New file
0,0 → 1,3
<?php
// test latitude, séparateur décimales = point
return array('data' => array('latitude' => '3.3'));
/branches/v1.9-echenilloir/jrest/tests/phptests/altitude.result.php
New file
0,0 → 1,3
<?php return array (
'altitude' => '800',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-badref-bdnffnn.test.php
New file
0,0 → 1,5
<?php
// test détermination espèce avec bdnffnn mais avec un référentiel erroné
// TODO: RechercheInfosTaxonBeta.php, ligne 186 devrait être modifié afin que la détermination
// prennent en priorité le préfixe "bdtfx" et ignore la colonne "nom_referentiel"
return array('data' => array('Espèce' => 'bdtfx:nn:72475', 'nom_referentiel' => 'bdtxa'));
/branches/v1.9-echenilloir/jrest/tests/phptests/accents.result.php
New file
0,0 → 1,5
<?php return array (
'lieudit' => 'œufs',
'station' => 'Ératostène',
'milieu' => 'Byørg',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-insee.result.php
New file
0,0 → 1,3
<?php return array (
'zone_geo' => 'Montpellier',
'ce_zone_geo' => '34');
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-syno-bdnff.result.php
New file
0,0 → 1,9
<?php
return array (
'nom_sel' => 'Leuzea conifera',
'nom_sel_nn' => '38821',
'nom_ret' => 'Rhaponticum coniferum (L.) Greuter',
'nom_ret_nn' => '101838',
'nt' => '1050',
'famille' => 'Asteraceae');
?>
/branches/v1.9-echenilloir/jrest/tests/phptests/latitude-virgule.result.php
New file
0,0 → 1,3
<?php return array (
'latitude' => '3.3',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-cp-seul.test.php
New file
0,0 → 1,3
<?php
// test localisation sur code insee seul
return array('data' => array('Commune' => '34172'));
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-comm-PHPExcel-double.result.php
New file
0,0 → 1,3
<?php return array (
'zone_geo' => 'Villeneuve-Loubet',
'ce_zone_geo' => '06');
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-detect.test.php
New file
0,0 → 1,3
<?php
// test localisation simple (commune seule)
return array('data' => array('Commune' => 'Marseille'));
/branches/v1.9-echenilloir/jrest/tests/phptests/date-post-1900.test.php
New file
0,0 → 1,3
<?php
// test date format texte, post 1900
return array('data' => array('Date' => '23/01/1991'));
/branches/v1.9-echenilloir/jrest/tests/phptests/date-post-2900.test.php
New file
0,0 → 1,4
<?php
// test date format texte, futur
return array('warn' => 1,
'data' => array('Date' => '23/06/2900'));
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-nom-cp2.result.php
New file
0,0 → 1,3
<?php return array (
'zone_geo' => 'Villers-lès-Nancy',
'ce_zone_geo' => '54');
/branches/v1.9-echenilloir/jrest/tests/phptests/milieu-255.result.php
New file
0,0 → 1,3
<?php return array (
'milieu' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur test long commentaire : adipisicing elit, sed do eiusmod tempor incididunt consectetur adi',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/ref-nonom-num.result.php
New file
0,0 → 1,0
<?php return array ('nom_referentiel' => 'autre');
/branches/v1.9-echenilloir/jrest/tests/phptests/localisation-cp-PHPExcel-double.test.php
New file
0,0 → 1,4
<?php
// PHPExcel peut caster CE_ZONE_GEO en (double) et stripper le leading '0'
// d'où problème de détection du code commune
return array('data' => array('Identifiant Commune' => '06161'));
/branches/v1.9-echenilloir/jrest/tests/phptests/ref-nom-num.test.php
New file
0,0 → 1,9
<?php
/* test détermination setting du référentiel:
Théorie, valable pour insert et update:
- pas de nom_sel = pas de num_nom
MAIS:
- pas de nom_sel = pas de référentiel (NULL)
- nom_sel mais pas de num_nom = référentiel = "autre"
*/
return array('data' => array('nom_referentiel' => 'bdtfx', 'nom_sel' => 'blah', 'nom_sel_nn' => -42));
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-bdnffnt.test.php
New file
0,0 → 1,3
<?php
// test détermination espèce avec bdnffnt, minuscules
return array('data' => array('Espèce' => 'bdtfx:nt:5757'));
/branches/v1.9-echenilloir/jrest/tests/phptests/latitude-point.result.php
New file
0,0 → 1,3
<?php return array (
'latitude' => '3.3',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-noref-bdnffnn.test.php
New file
0,0 → 1,3
<?php
// test détermination espèce avec bdnffnn mais sans référentiel
return array('data' => array('Espèce' => 'bdtfx:nn:72475', 'nom_referentiel' => 'autre'));
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-from-nom-ret.test.php
New file
0,0 → 1,3
<?php
// test détermination espèce avec un nom retenu (contenant déjà le nom_sci concaténé)
return array('data' => array('Espèce' => 'Hieracium lysanum Arv.-Touv. & Gaut.', 'nom_referentiel' => 'bdtfx'));
/branches/v1.9-echenilloir/jrest/tests/phptests/date-format-invert.test.php
New file
0,0 → 1,3
<?php
// test date format inverse YYYY/MM/DD
return array('data' => array('Date' => '1991/01/23'));
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-badref-bdnffnn.result.php
New file
0,0 → 1,3
<?php return array (
'nom_sel' => 'Viola riviniana subsp. bavarica',
'nom_referentiel' => 'bdtfx');
/branches/v1.9-echenilloir/jrest/tests/phptests/altitude.test.php
New file
0,0 → 1,3
<?php
// test altitude
return array('data' => array('altitude' => '800'));
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-syno-bdnff.test.php
New file
0,0 → 1,11
<?php
// test détermination espèce sur synonyme:
/*
+---------+----------------+-----------------------+
| num_nom | num_nom_retenu | nom_sci |
+---------+----------------+-----------------------+
| 38821 | 101838 | Leuzea conifera |
| 101838 | 101838 | Rhaponticum coniferum |
+---------+----------------+-----------------------+
*/
return array('data' => array('Espèce' => 'bdtfx:nn:38821'));
/branches/v1.9-echenilloir/jrest/tests/phptests/date-post-2900.result.php
New file
0,0 → 1,3
<?php return array (
'date_observation' => '',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-bdnffnn.result.php
New file
0,0 → 1,8
<?php return array (
'nom_sel' => 'Viola riviniana subsp. bavarica',
'nom_sel_nn' => '72475',
'nom_ret' => 'Viola x bavarica Schrank',
'nom_ret_nn' => '72090',
'nt' => '7705',
'famille' => 'Violaceae',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/milieu-255.test.php
New file
0,0 → 1,3
<?php
// test milieu, 255 caractères
return array('data' => array('milieu' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur test long commentaire : adipisicing elit, sed do eiusmod tempor incididunt consectetur adipisicing'));
/branches/v1.9-echenilloir/jrest/tests/phptests/ref-nonom-num.test.php
New file
0,0 → 1,9
<?php
/* test détermination setting du référentiel:
Théorie, valable pour insert et update:
- pas de nom_sel = pas de num_nom
MAIS:
- pas de nom_sel = pas de référentiel (NULL)
- nom_sel mais pas de num_nom = référentiel = "autre"
*/
return array('data' => array('nom_referentiel' => 'bdtfx', 'nom_sel_nn' => 182));
/branches/v1.9-echenilloir/jrest/tests/phptests/01-sample.result.php
New file
0,0 → 1,3
<?php return array (
'date_observation' => '1991/06/23',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/ref-nom-num.result.php
New file
0,0 → 1,0
<?php return array ('nom_sel' => 'blah','nom_referentiel' => 'autre');
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-from-nom-ret.result.php
New file
0,0 → 1,9
<?php return array (
'nom_sel' => 'Hieracium lysanum Arv.-Touv. & Gaut.',
'nom_sel_nn' => '33392',
'nom_ret' => 'Hieracium lysanum Arv.-Touv. & Gaut.',
'nom_ret_nn' => '33392',
'nt' => '11235',
'famille' => 'Asteraceae',
'nom_referentiel' => 'bdtfx'
);
/branches/v1.9-echenilloir/jrest/tests/phptests/determ-espece-noref-bdnffnn.result.php
New file
0,0 → 1,3
<?php return array (
'nom_sel' => 'Viola riviniana subsp. bavarica',
'nom_referentiel' => 'bdtfx');
/branches/v1.9-echenilloir/jrest/tests/phptests/date-format-invert.result.php
New file
0,0 → 1,3
<?php return array (
'date_observation' => '1991/01/23',
);
/branches/v1.9-echenilloir/jrest/tests/phptests/date-format-revert.test.php
New file
0,0 → 1,3
<?php
// test date format inverse YYYY/MM/DD
return array('data' => array('Date' => '23/01/1991'));