Skip to content

Commit 31a21b6

Browse files
authored
Test unspecified lists (#686)
1 parent a259025 commit 31a21b6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/default/data/pdo-prepare.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,20 @@ public function unspecifiedArray(PDO $pdo, array $idsToUpdate, string $time)
8181
assertType('PDOStatement<array{adaid: int<-32768, 32767>, 0: int<-32768, 32767>}>', $stmt);
8282
}
8383

84+
/**
85+
* @param list $idsToUpdate
86+
*/
87+
public function unspecifiedList(PDO $pdo, array $idsToUpdate, string $time)
88+
{
89+
$query = 'SELECT adaid FROM ada WHERE adaid IN (:ids) AND email LIKE :time';
90+
$stmt = $pdo->prepare($query);
91+
$stmt->execute([
92+
'ids' => $idsToUpdate,
93+
'time' => $time,
94+
]);
95+
assertType('PDOStatement<array{adaid: int<-32768, 32767>, 0: int<-32768, 32767>}>', $stmt);
96+
}
97+
8498
/**
8599
* @param number $idsToUpdate
86100
*/

0 commit comments

Comments
 (0)