Skip to content

Commit ac7846e

Browse files
clxmstaabstaabm
authored andcommitted
added REPLACE query coverage
1 parent 0c52920 commit ac7846e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/data/pdo.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ public function insertQuery(PDO $pdo)
9898
assertType('PDOStatement<array>|false', $stmt);
9999
}
100100

101+
public function replaceQuery(PDO $pdo)
102+
{
103+
$query = "REPLACE INTO ada SET email='[email protected]'";
104+
$stmt = $pdo->query($query, PDO::FETCH_ASSOC);
105+
assertType('PDOStatement<array>|false', $stmt);
106+
}
107+
101108
public function updateQuery(PDO $pdo)
102109
{
103110
$query = "UPDATE ada SET email='[email protected]' where adaid=-5";

0 commit comments

Comments
 (0)