From eb481e4f5eaf3fad2dddc3f20590d1ccd9e53e42 Mon Sep 17 00:00:00 2001 From: proust Date: Fri, 2 Jun 2017 09:51:18 +0200 Subject: [PATCH] preparation merge avec irap --- tests/Fixture/FichemetrologiquesFixture.php | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/Fixture/FormulesFixture.php | 37 +++++++++++++++++++++++++++++++++++++ tests/Fixture/FournisseursFixture.php | 43 +++++++++++++++++++++++++++++++++++++++++++ tests/Fixture/MesuresFixture.php | 37 +++++++++++++++++++++++++++++++++++++ tests/Fixture/UnitesFixture.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ tests/Fixture/VariablesFixture.php | 40 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 263 insertions(+), 0 deletions(-) create mode 100644 tests/Fixture/FichemetrologiquesFixture.php create mode 100644 tests/Fixture/FormulesFixture.php create mode 100644 tests/Fixture/FournisseursFixture.php create mode 100644 tests/Fixture/MesuresFixture.php create mode 100644 tests/Fixture/UnitesFixture.php create mode 100644 tests/Fixture/VariablesFixture.php diff --git a/tests/Fixture/FichemetrologiquesFixture.php b/tests/Fixture/FichemetrologiquesFixture.php new file mode 100644 index 0000000..a895d3a --- /dev/null +++ b/tests/Fixture/FichemetrologiquesFixture.php @@ -0,0 +1,62 @@ + ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null], + 'suivi_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'mesurande' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'moyenne' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'ecarttype' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'correction' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'ua' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'ub' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'uc' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'uf' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'u' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'incertitude' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'conditionEnv' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'resolution' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'etatmateriel' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'etatmetrologique' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'emtpersonnel' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'nbMesure' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'conformeEMTstandart' => ['type' => 'string', 'length' => 100, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'conformeEMTperso' => ['type' => 'string', 'length' => 100, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'resultatfinal' => ['type' => 'string', 'length' => 100, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'observation' => ['type' => 'string', 'length' => 200, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'datefiche' => ['type' => 'date', 'length' => null, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'retard' => ['type' => 'string', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'justesse' => ['type' => 'float', 'length' => 45, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + 'materiel_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null], + '_indexes' => [ + 'fk_fichemetro_suiv_id_idx' => ['type' => 'index', 'columns' => ['suivi_id'], 'length' => []], + 'fk_fichemetro_materiel_id_idx' => ['type' => 'index', 'columns' => ['materiel_id'], 'length' => []], + ], + '_constraints' => [ + 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []], + 'fk_fichemetro_suiv_id' => ['type' => 'foreign', 'columns' => ['suivi_id'], 'references' => ['suivis', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []], + 'fk_fichemetro_materiel_id' => ['type' => 'foreign', 'columns' => ['materiel_id'], 'references' => ['materiels', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []], + + ], + '_options' => [ + 'engine' => 'InnoDB', + 'collation' => 'latin1_swedish_ci' + ], + ]; + +} diff --git a/tests/Fixture/FormulesFixture.php b/tests/Fixture/FormulesFixture.php new file mode 100644 index 0000000..ab68ffd --- /dev/null +++ b/tests/Fixture/FormulesFixture.php @@ -0,0 +1,37 @@ + ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null], + 'nommesure' => ['type' => 'string', 'length' => 100, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'symbole' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => 'F', 'comment' => '', 'precision' => null, 'fixed' => null], + 'unite' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'nbVariable' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'default' => null, 'comment' => '', 'autoIncrement' => false, 'precision' => null], + 'formule' => ['type' => 'string', 'length' => 200, 'null' => 'F', 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + '_constraints' => [ + 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []], + ], + '_options' => [ + 'engine' => 'InnoDB', + 'collation' => 'latin1_swedish_ci' + ], + ]; + // @codingStandardsIgnoreEnd + + +} diff --git a/tests/Fixture/FournisseursFixture.php b/tests/Fixture/FournisseursFixture.php new file mode 100644 index 0000000..71f9eef --- /dev/null +++ b/tests/Fixture/FournisseursFixture.php @@ -0,0 +1,43 @@ + ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null], + 'nom' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + '_constraints' => [ + 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []], + ], + '_options' => [ + 'engine' => 'InnoDB', + 'collation' => 'latin1_swedish_ci' + ], + ]; + // @codingStandardsIgnoreEnd + + /** + * Records + * + * @var array + */ + public $records = [ + [ + 'id' => 1, + 'nom' => 'Lorem ipsum dolor sit amet' + ], + ]; +} diff --git a/tests/Fixture/MesuresFixture.php b/tests/Fixture/MesuresFixture.php new file mode 100644 index 0000000..5ea3bac --- /dev/null +++ b/tests/Fixture/MesuresFixture.php @@ -0,0 +1,37 @@ + ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null], + 'fichemetrologique_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => true, 'comment' => '', 'precision' => null], + 'valeur' => ['type' => 'double', 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'erreur' => ['type' => 'double', 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + '_indexes' => [ + 'fk_mesure_fichemetrologique_id_idx' => ['type' => 'index', 'columns' => ['fichemetrologique_id'], 'length' => []], + ], + '_constraints' => [ + 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []], + 'fk_mesure_fichemetrologique_id' => ['type' => 'foreign', 'columns' => ['fichemetrologique_id'], 'references' => ['fichemetrologiques', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []], + ], + '_options' => [ + 'engine' => 'InnoDB', + 'collation' => 'latin1_swedish_ci' + ], + ]; + +} diff --git a/tests/Fixture/UnitesFixture.php b/tests/Fixture/UnitesFixture.php new file mode 100644 index 0000000..dda667f --- /dev/null +++ b/tests/Fixture/UnitesFixture.php @@ -0,0 +1,44 @@ + ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null], + 'nom' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'symbole' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + '_constraints' => [ + 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []], + ], + '_options' => [ + 'engine' => 'InnoDB', + 'collation' => 'latin1_swedish_ci' + ], + ]; + // @codingStandardsIgnoreEnd + + /** + * Records + * + * @var array + */ + public $records = [ + [ + 'id' => 1, + 'nom' => 'Lorem ipsum dolor sit amet' + ], + ]; +} diff --git a/tests/Fixture/VariablesFixture.php b/tests/Fixture/VariablesFixture.php new file mode 100644 index 0000000..aa09dd2 --- /dev/null +++ b/tests/Fixture/VariablesFixture.php @@ -0,0 +1,40 @@ + ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => true, 'precision' => null], + 'formule_id' => ['type' => 'integer', 'length' => 11, 'unsigned' => false, 'null' => false, 'default' => null, 'comment' => '', 'autoIncrement' => false, 'precision' => null], + 'symbolegrandeurphysique' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'symboleunitemesure' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'nomgrandeurphysique' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'domainedef' => ['type' => 'string', 'length' => 50, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + 'derivepartielle' => ['type' => 'string', 'length' => 100, 'null' => true, 'default' => null, 'comment' => '', 'precision' => null, 'fixed' => null], + '_indexes' => [ + 'fk_variables_formules_id' => ['type' => 'index', 'columns' => ['formule_id'], 'length' => []], + ], + '_constraints' => [ + 'primary' => ['type' => 'primary', 'columns' => ['id'], 'length' => []], + 'fk_variables_formules_id' => ['type' => 'foreign', 'columns' => ['formule_id'], 'references' => ['formules', 'id'], 'update' => 'noAction', 'delete' => 'noAction', 'length' => []], + ], + '_options' => [ + 'engine' => 'InnoDB', + 'collation' => 'latin1_swedish_ci' + ], + ]; + +} -- libgit2 0.21.2