Example #1
0
 public function setUp()
 {
     parent::setUp();
     if (!class_exists('\\PDO')) {
         $this->markTestSkipped('PDO extension is not installed');
     }
     $options = array('connection_string' => 'mysql:host=localhost;dbname=phpqueuetest', 'db_table' => 'pdotest', 'pdo_options' => array(\PDO::ATTR_PERSISTENT => true));
     $this->object = new PDO($options);
     // Create table
     $this->assertTrue($this->object->createTable('pdotest'));
     $this->object->clearAll();
 }