Unverified Commit f920bda2 authored by Tomáš Holan's avatar Tomáš Holan Committed by GitHub

Changed tmpfile() to fopen()

parent cea3dc06
...@@ -22,7 +22,7 @@ class DBALExceptionTest extends DbalTestCase ...@@ -22,7 +22,7 @@ class DBALExceptionTest extends DbalTestCase
{ {
/* @var $driver Driver */ /* @var $driver Driver */
$driver = $this->createMock(Driver::class); $driver = $this->createMock(Driver::class);
$e = \Doctrine\DBAL\DBALException::driverExceptionDuringQuery($driver, new \Exception, "INSERT INTO file (`content`) VALUES (?)", [1 => tmpfile()]); $e = \Doctrine\DBAL\DBALException::driverExceptionDuringQuery($driver, new \Exception, "INSERT INTO file (`content`) VALUES (?)", [1 => fopen(__FILE__, 'r')]);
self::assertContains('Resource', $e->getMessage()); self::assertContains('Resource', $e->getMessage());
} }
......
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