We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac2bdc commit 86d3aa6Copy full SHA for 86d3aa6
tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8StatementTest.php
@@ -8,6 +8,8 @@
8
use Doctrine\Tests\DbalTestCase;
9
use ReflectionProperty;
10
11
+use function fopen;
12
+
13
/**
14
* @requires extension oci8
15
*/
@@ -59,6 +61,10 @@ public function testExecute(array $params): void
59
61
$reflProperty->setAccessible(true);
60
62
$reflProperty->setValue($statement, $conn);
63
64
+ $reflProperty = new ReflectionProperty($statement, '_sth');
65
+ $reflProperty->setAccessible(true);
66
+ $reflProperty->setValue($statement, fopen('/dev/null', 'r'));
67
68
$this->expectException(OCI8Exception::class);
69
$statement->execute($params);
70
}
0 commit comments