Example #1
0
 public function testGetSelectedFieldsProvidedExceptionMissingDependency()
 {
     $expected = array('id', 'name');
     $initial_config = array('select' => array('id', 'name'), 'table' => 'blouarp');
     try {
         $this->assertEquals($expected, $this->query->getSelectedFields($initial_config));
     } catch (Exception\MissingDependencyException $e) {
         return;
     } catch (Exception $e) {
         $this->fail("MissingDependencyException should have been raised. Another Exception was raised instead.");
     }
     $this->fail("MissingDependencyException should have been raised.");
 }