Example #1
0
 public function testMapFilterParametersNamesExceptionBadKeysMatching()
 {
     try {
         $sql = 's.date BETWEEN :start AND :end';
         $options = array(':start' => '2013-12-31', ':fin' => '2014-01-21');
         $this->query->mapFilterParametersNames($sql, $options);
     } catch (Exception\MissingKeyException $e) {
         return;
     }
     $this->fail("MissingKeyException should have been raised.");
 }