Skip to content

Commit 79e242d

Browse files
committed
Fix newly added tests
1 parent aad9460 commit 79e242d

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

ext/pdo_sqlite/tests/subclasses/pdo_sqlite_createafunction_arg_error.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
--TEST--
2-
Test PdoSqlite::createFunction() arguments error
2+
Test Pdo\Sqlite::createFunction() arguments error
33
--EXTENSIONS--
44
pdo_sqlite
55
--FILE--
66
<?php
77

88
declare(strict_types=1);
99

10-
$db = new PdoSqlite('sqlite::memory:');
10+
$db = new Pdo\Sqlite('sqlite::memory:');
1111

1212
class TrampolineTest {
1313
public function __call(string $name, array $arguments) {
@@ -42,8 +42,8 @@ try {
4242
echo 'done!';
4343
?>
4444
--EXPECT--
45-
PdoSqlite::createFunction(): Argument #1 ($function_name) must be of type string, null given
46-
PdoSqlite::createFunction(): Argument #2 ($callback) must be a valid callback, no array or string given
47-
PdoSqlite::createFunction(): Argument #3 ($num_args) must be of type int, null given
48-
PdoSqlite::createFunction(): Argument #4 ($flags) must be of type int, null given
45+
Pdo\Sqlite::createFunction(): Argument #1 ($function_name) must be of type string, null given
46+
Pdo\Sqlite::createFunction(): Argument #2 ($callback) must be a valid callback, no array or string given
47+
Pdo\Sqlite::createFunction(): Argument #3 ($num_args) must be of type int, null given
48+
Pdo\Sqlite::createFunction(): Argument #4 ($flags) must be of type int, null given
4949
done!

ext/pdo_sqlite/tests/subclasses/pdo_sqlite_createaggregate_arg_error.phpt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
--TEST--
2-
Test PdoSqlite::createAggregate() arguments error
2+
Test Pdo\Sqlite::createAggregate() arguments error
33
--EXTENSIONS--
44
pdo_sqlite
55
--FILE--
66
<?php
77

88
declare(strict_types=1);
99

10-
$db = new PdoSqlite('sqlite::memory:');
10+
$db = new Pdo\Sqlite('sqlite::memory:');
1111

1212
class TrampolineTest {
1313
public function __call(string $name, array $arguments) {
@@ -54,10 +54,10 @@ try {
5454
echo 'done!';
5555
?>
5656
--EXPECT--
57-
PdoSqlite::createAggregate(): Argument #1 ($name) must be of type string, null given
58-
PdoSqlite::createAggregate(): Argument #1 ($name) must be of type string, null given
59-
PdoSqlite::createAggregate(): Argument #1 ($name) must be of type string, null given
60-
PdoSqlite::createAggregate(): Argument #2 ($step) must be a valid callback, no array or string given
61-
PdoSqlite::createAggregate(): Argument #3 ($finalize) must be a valid callback, no array or string given
62-
PdoSqlite::createAggregate(): Argument #4 ($numArgs) must be of type int, null given
57+
Pdo\Sqlite::createAggregate(): Argument #1 ($name) must be of type string, null given
58+
PdoS\qlite::createAggregate(): Argument #1 ($name) must be of type string, null given
59+
Pdo\Sqlite::createAggregate(): Argument #1 ($name) must be of type string, null given
60+
Pdo\Sqlite::createAggregate(): Argument #2 ($step) must be a valid callback, no array or string given
61+
Pdo\Sqlite::createAggregate(): Argument #3 ($finalize) must be a valid callback, no array or string given
62+
Pdo\Sqlite::createAggregate(): Argument #4 ($numArgs) must be of type int, null given
6363
done!

ext/pdo_sqlite/tests/subclasses/pdo_sqlite_createcollation_arg_error.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
--TEST--
2-
Test PdoSqlite::createCollation() arguments error
2+
Test Pdo\Sqlite::createCollation() arguments error
33
--EXTENSIONS--
44
pdo_sqlite
55
--FILE--
66
<?php
77

88
declare(strict_types=1);
99

10-
$db = new PdoSqlite('sqlite::memory:');
10+
$db = new Pdo\Sqlite('sqlite::memory:');
1111

1212
class TrampolineTest {
1313
public function __call(string $name, array $arguments) {
@@ -30,6 +30,6 @@ try {
3030
echo 'done!';
3131
?>
3232
--EXPECT--
33-
PdoSqlite::createCollation(): Argument #1 ($name) must be of type string, null given
34-
PdoSqlite::createCollation(): Argument #2 ($callback) must be a valid callback, no array or string given
33+
Pdo\Sqlite::createCollation(): Argument #1 ($name) must be of type string, null given
34+
Pdo\Sqlite::createCollation(): Argument #2 ($callback) must be a valid callback, no array or string given
3535
done!

0 commit comments

Comments
 (0)