Skip to content

Commit

Permalink
DataAccessTest::testFetchColumnNonExistingIndex() since it covers a b…
Browse files Browse the repository at this point in the history
…ug in PDO
  • Loading branch information
morozov committed Nov 27, 2018
1 parent 9dbec4b commit 74d951e
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,22 +891,6 @@ public function testFetchColumnNullValue()
);
}

/**
* @group DBAL-1028
*/
public function testFetchColumnNonExistingIndex()
{
if ($this->connection->getDriver()->getName() === 'pdo_sqlsrv') {
$this->markTestSkipped(
'Test does not work for pdo_sqlsrv driver as it throws a fatal error for a non-existing column index.'
);
}

self::assertNull(
$this->connection->fetchColumn('SELECT test_int FROM fetch_table WHERE test_int = ?', [1], 1)
);
}

/**
* @group DBAL-1028
*/
Expand Down

0 comments on commit 74d951e

Please sign in to comment.