/**
  * @dataProvider getConParams
  */
 public function testNoSetNameQueryExecuted($conparams)
 {
     $db = new TestableMysqlAdapter();
     $params = $db->prepareParams($conparams);
     $settings = array();
     if (isset($params['settings'])) {
         $settings = $params['settings'];
     }
     $db->initConnection($this->getPdoMock(), $settings);
 }
示例#2
0
 /**
  * @dataProvider getConParams
  */
 public function testNoSetNameQueryExecuted($conparams)
 {
     if (version_compare(PHP_VERSION, '5.3.6', '<')) {
         $this->markTestSkipped('PHP_VERSION < 5.3.6 will throw an exception.');
     }
     $db = new TestableMysqlAdapter();
     $params = $db->prepareParams($conparams);
     $settings = array();
     if (isset($params['settings'])) {
         $settings = $params['settings'];
     }
     $db->initConnection($this->getPdoMock(), $settings);
 }