/**
  * Register an information request.
  * 
  * @param \Liip\RMT\Information\InformationRequest $request
  * @throws \Exception
  */
 public function registerRequest(InformationRequest $request)
 {
     $name = $request->getName();
     if (in_array($name, static::$standardRequests)) {
         throw new \Exception("Request [{$name}] is reserved as a standard request name, choose an other name please");
     }
     if ($this->hasRequest($name)) {
         throw new \Exception("Request [{$name}] already registered");
     }
     $this->requests[$name] = $request;
 }
 /**
  * @dataProvider getDataForValidationFail
  * @expectedException \InvalidArgumentException
  */
 public function testValidationFail($options, $value)
 {
     $ir = new InformationRequest('foo', $options);
     $ir->setValue($value);
 }