Subversion Repositories Applications.referentiel

Rev

Rev 142 | Rev 149 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 142 Rev 146
Line 171... Line 171...
171
			
171
			
172
			$this->testerPresenceSyntaxe();
172
			$this->testerPresenceSyntaxe();
173
			$this->testerStatutOrigineSyntaxe();
173
			$this->testerStatutOrigineSyntaxe();
174
			$this->testerStatutIntroductionSyntaxe();
174
			$this->testerStatutIntroductionSyntaxe();
-
 
175
			$this->testerStatutCultureSyntaxe();
175
			$this->testerStatutCultureSyntaxe();
176
			$this->testerExclureTaxRefSyntaxe();
176
		}
177
		}
177
	}
178
	}
178
	private function verifierResultats($resultats) {
179
	private function verifierResultats($resultats) {
179
		$ok = true;
180
		$ok = true;
Line 2076... Line 2077...
2076
		$noms_erreur = null;
2077
		$noms_erreur = null;
Line 2077... Line 2078...
2077
		
2078
		
2078
		$this->traiterResultatTest($info);
2079
		$this->traiterResultatTest($info);
Line -... Line 2080...
-
 
2080
	}
-
 
2081
	
-
 
2082
	
-
 
2083
	private function testerExclureTaxRefSyntaxe() {
-
 
2084
		$info = array('nom' => 'exclure_taxref -> syntaxe',
-
 
2085
			'description' => "Le champ exclure_taxref contient soit :\n".
-
 
2086
			" - une valeur vide.\n".
-
 
2087
			" - une valeur null.\n".
-
 
2088
			" - le chiffre 0.\n".
-
 
2089
			" - le chiffre 1",
-
 
2090
			'resultat' => false);
-
 
2091
		
-
 
2092
		// Réalisation du test
-
 
2093
		$noms_erreur = array();
-
 
2094
		foreach ($this->noms as &$nom) {
-
 
2095
			if ($nom['exclure_taxref'] != '' && $nom['exclure_taxref'] != null) {
-
 
2096
				if (!$this->verifierBooleen($nom['exclure_taxref'])) {
-
 
2097
					$noms_erreur[] = array($nom['num_nom'], $nom['exclure_taxref']);
-
 
2098
				}
-
 
2099
			}
-
 
2100
		}
-
 
2101
		
-
 
2102
		// Analyse des résultats
-
 
2103
		if (count($noms_erreur) > 0) {
-
 
2104
			$info['message']['entete'] = array('num_nom', 'exclure_taxref erroné');
-
 
2105
			$info['message']['lignes'] = $noms_erreur;
-
 
2106
		} else {
-
 
2107
			$info['resultat'] = true;
-
 
2108
		}
-
 
2109
		$noms_erreur = null;
-
 
2110
		
2079
	}
2111
		$this->traiterResultatTest($info);
2080
	
2112
	}
Line 2081... Line 2113...
2081
	//+--------------------------------------------------------------------------------------------------------------+//
2113
	//+--------------------------------------------------------------------------------------------------------------+//
2082
	// MÉTHODES COMMUNES aux TESTS
2114
	// MÉTHODES COMMUNES aux TESTS