Commit f1ccaed4 authored by Marco Pivetta's avatar Marco Pivetta

#2497 #2500 simplified test case scenario (inlined statement)

parent 4a7313be
......@@ -241,9 +241,9 @@ class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase
public function testFetchNoResult()
{
$sql = "SELECT test_int FROM fetch_table WHERE test_int = ?";
$row = $this->_conn->executeQuery($sql, array(-1))->fetch();
$this->assertFalse($row);
self::assertFalse(
$this->_conn->executeQuery('SELECT test_int FROM fetch_table WHERE test_int = ?', [-1])->fetch()
);
}
public function testFetchAssoc()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment