| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class PDOStatementTest extends DbalFunctionalTestCase |
||
| 12 | { |
||
| 13 | protected function setUp() |
||
| 14 | { |
||
| 15 | if (! extension_loaded('pdo')) { |
||
| 16 | $this->markTestSkipped('PDO is not installed'); |
||
| 17 | } |
||
| 18 | |||
| 19 | parent::setUp(); |
||
| 20 | |||
| 21 | if (! $this->_conn->getWrappedConnection() instanceof PDOConnection) { |
||
| 22 | $this->markTestSkipped('PDO-only test'); |
||
| 23 | } |
||
| 24 | |||
| 25 | $table = new Table('stmt_test'); |
||
| 26 | $table->addColumn('id', 'integer'); |
||
| 27 | $table->addColumn('name', 'text'); |
||
| 28 | $this->_conn->getSchemaManager()->dropAndCreateTable($table); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @group legacy |
||
| 33 | * @expectedDeprecation Using a PDO fetch mode or their combination (%d given) is deprecated and will cause an error in Doctrine 3.0 |
||
| 34 | */ |
||
| 35 | public function testPDOSpecificModeIsAccepted() |
||
| 53 | } |
||
| 54 | } |
||
| 55 |