Skip to content

Commit 86d3aa6

Browse files
committed
Try providing a valid resource
Do not judge me I'm just trying things…
1 parent bac2bdc commit 86d3aa6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8StatementTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use Doctrine\Tests\DbalTestCase;
99
use ReflectionProperty;
1010

11+
use function fopen;
12+
1113
/**
1214
* @requires extension oci8
1315
*/
@@ -59,6 +61,10 @@ public function testExecute(array $params): void
5961
$reflProperty->setAccessible(true);
6062
$reflProperty->setValue($statement, $conn);
6163

64+
$reflProperty = new ReflectionProperty($statement, '_sth');
65+
$reflProperty->setAccessible(true);
66+
$reflProperty->setValue($statement, fopen('/dev/null', 'r'));
67+
6268
$this->expectException(OCI8Exception::class);
6369
$statement->execute($params);
6470
}

0 commit comments

Comments
 (0)