function testParametreFunctionsDansJson(){
		$b = new Barre_outils($this->baseParamsBarre);
		$b->functions = "function dido(){}";
		$json = $b->creer_json();
		// function n'est plus dans la barre
		$this->assertFalse($b->functions);
		// mais uniquement en fin du fichier json
		$this->assertPattern('/function dido\(/', $json);		
	}
 function testParametreFunctionsDansJson()
 {
     $b = new Barre_outils($this->baseParamsBarre);
     $b->functions = "function dido(){}";
     $json = $b->creer_json();
     // function n'est plus dans la barre
     $this->expectError(new PatternExpectation("/Undefined property: Barre_outils::\\\$functions/i"));
     $b->functions;
     // mais uniquement en fin du fichier json
     $this->assertPattern('/function dido\\(/', $json);
 }