summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-08-09 11:06:57 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-08-09 22:03:36 +0200
commit7aacc705d03887c64a90489e367f4c40b46aa3c2 (patch)
treeec7388f82b37e8611c7513aa95678d7feae82329 /ext/pdo_mysql
parent05478e985eb50c473054b4f1bf174f48ead78784 (diff)
downloadphp-git-7aacc705d03887c64a90489e367f4c40b46aa3c2.tar.gz
Add many missing closing PHP tags to tests
Closes GH-5958
Diffstat (limited to 'ext/pdo_mysql')
-rw-r--r--ext/pdo_mysql/tests/bug63176.phpt1
-rw-r--r--ext/pdo_mysql/tests/bug_39483.phptbin714 -> 717 bytes
-rw-r--r--ext/pdo_mysql/tests/last_insert_id.phpt1
-rw-r--r--ext/pdo_mysql/tests/pdo_mysql_attr_errmode.phpt1
-rw-r--r--ext/pdo_mysql/tests/pdo_mysql_attr_prefetch.phpt1
-rw-r--r--ext/pdo_mysql/tests/pdo_mysql_attr_server_info.phpt1
-rw-r--r--ext/pdo_mysql/tests/pdo_mysql_class_constants.phpt1
-rw-r--r--ext/pdo_mysql/tests/pdo_mysql_interface.phpt1
-rw-r--r--ext/pdo_mysql/tests/show_tables.phpt1
9 files changed, 8 insertions, 0 deletions
diff --git a/ext/pdo_mysql/tests/bug63176.phpt b/ext/pdo_mysql/tests/bug63176.phpt
index 2a75f47384..0db4336624 100644
--- a/ext/pdo_mysql/tests/bug63176.phpt
+++ b/ext/pdo_mysql/tests/bug63176.phpt
@@ -35,6 +35,7 @@ $b = new ModelA(false);
var_dump($a);
var_dump($b);
+?>
--EXPECTF--
bool(true)
bool(false)
diff --git a/ext/pdo_mysql/tests/bug_39483.phpt b/ext/pdo_mysql/tests/bug_39483.phpt
index e0f1fd2ea3..1d9512904c 100644
--- a/ext/pdo_mysql/tests/bug_39483.phpt
+++ b/ext/pdo_mysql/tests/bug_39483.phpt
Binary files differ
diff --git a/ext/pdo_mysql/tests/last_insert_id.phpt b/ext/pdo_mysql/tests/last_insert_id.phpt
index 4b32d1cda2..10fcfc3f0f 100644
--- a/ext/pdo_mysql/tests/last_insert_id.phpt
+++ b/ext/pdo_mysql/tests/last_insert_id.phpt
@@ -19,6 +19,7 @@ print_r($db->query("INSERT INTO test (id, num) VALUES (23, 42)"));
print_r($db->query("INSERT INTO test (num) VALUES (451)"));
print_r($db->lastInsertId());
+?>
--EXPECT--
PDOStatement Object
(
diff --git a/ext/pdo_mysql/tests/pdo_mysql_attr_errmode.phpt b/ext/pdo_mysql/tests/pdo_mysql_attr_errmode.phpt
index 13c331633c..0d6cee356e 100644
--- a/ext/pdo_mysql/tests/pdo_mysql_attr_errmode.phpt
+++ b/ext/pdo_mysql/tests/pdo_mysql_attr_errmode.phpt
@@ -158,6 +158,7 @@ error_reporting=E_ALL
$db->query('THIS IS NOT VALID SQL');
print "done!\n";
+?>
--EXPECTF--
[003] Maybe PDO could indicate that this is not a proper way of setting the ERRMODE...true
diff --git a/ext/pdo_mysql/tests/pdo_mysql_attr_prefetch.phpt b/ext/pdo_mysql/tests/pdo_mysql_attr_prefetch.phpt
index 155f3514fa..432e5d70d2 100644
--- a/ext/pdo_mysql/tests/pdo_mysql_attr_prefetch.phpt
+++ b/ext/pdo_mysql/tests/pdo_mysql_attr_prefetch.phpt
@@ -14,6 +14,7 @@ $db = MySQLPDOTest::factory();
var_dump($db->getAttribute(PDO::ATTR_PREFETCH));
var_dump($db->setAttribute(PDO::ATTR_PREFETCH, true));
print "done!";
+?>
--EXPECTF--
Warning: PDO::getAttribute(): SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute in %s on line %d
bool(false)
diff --git a/ext/pdo_mysql/tests/pdo_mysql_attr_server_info.phpt b/ext/pdo_mysql/tests/pdo_mysql_attr_server_info.phpt
index d1b6e1e02b..90e726017d 100644
--- a/ext/pdo_mysql/tests/pdo_mysql_attr_server_info.phpt
+++ b/ext/pdo_mysql/tests/pdo_mysql_attr_server_info.phpt
@@ -47,5 +47,6 @@ $db = MySQLPDOTest::factory();
}
print "done!";
+?>
--EXPECT--
done!
diff --git a/ext/pdo_mysql/tests/pdo_mysql_class_constants.phpt b/ext/pdo_mysql/tests/pdo_mysql_class_constants.phpt
index e5809c5a76..7ab189fedf 100644
--- a/ext/pdo_mysql/tests/pdo_mysql_class_constants.phpt
+++ b/ext/pdo_mysql/tests/pdo_mysql_class_constants.phpt
@@ -101,5 +101,6 @@ if (!extension_loaded('mysqli') && !extension_loaded('mysqlnd')) {
}
print "done!";
+?>
--EXPECT--
done!
diff --git a/ext/pdo_mysql/tests/pdo_mysql_interface.phpt b/ext/pdo_mysql/tests/pdo_mysql_interface.phpt
index fbf0938dc9..4ba236f2a4 100644
--- a/ext/pdo_mysql/tests/pdo_mysql_interface.phpt
+++ b/ext/pdo_mysql/tests/pdo_mysql_interface.phpt
@@ -54,5 +54,6 @@ if (false == MySQLPDOTest::detect_transactional_mysql_engine($db))
}
print "done!";
+?>
--EXPECT--
done!
diff --git a/ext/pdo_mysql/tests/show_tables.phpt b/ext/pdo_mysql/tests/show_tables.phpt
index d6b1337412..a1929484fa 100644
--- a/ext/pdo_mysql/tests/show_tables.phpt
+++ b/ext/pdo_mysql/tests/show_tables.phpt
@@ -13,6 +13,7 @@ require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory(__DIR__ . '/common.phpt');
print_r($db->query('SHOW TABLES'));
+?>
--EXPECT--
PDOStatement Object
(