Skip to content

Commit 03845a0

Browse files
committed
fix: adjusted test assertions
1 parent 9678f91 commit 03845a0

7 files changed

Lines changed: 20 additions & 20 deletions

‎ext/pdo/tests/attr_statement_class/pdo_ATTR_STATEMENT_CLASS_basic.phpt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
7878
$db = PDOTest::factory();
7979
PDOTest::dropTableIfExists($db, "pdo_attr_statement_class_basic");
8080
?>
81-
--EXPECT--
81+
--EXPECTF--
8282
array(1) {
8383
[0]=>
8484
string(12) "PDOStatement"
@@ -89,15 +89,15 @@ StatementWithPublicDestructor::__destruct
8989
Class derived from PDOStatement, with private constructor:
9090
bool(true)
9191
StatementWithPrivateConstructor::__construct
92-
object(StatementWithPrivateConstructor)#2 (1) {
92+
object(StatementWithPrivateConstructor)#%d (1) {
9393
["queryString"]=>
9494
string(68) "SELECT id, label FROM pdo_attr_statement_class_basic ORDER BY id ASC"
9595
}
9696
string(6) "param1"
9797
Class derived from a child of PDOStatement:
9898
bool(true)
9999
StatementWithPrivateConstructor::__construct
100-
object(StatementDerivedFromChild)#2 (1) {
100+
object(StatementDerivedFromChild)#%d (1) {
101101
["queryString"]=>
102102
string(68) "SELECT id, label FROM pdo_attr_statement_class_basic ORDER BY id ASC"
103103
}

‎ext/pdo/tests/attr_statement_class/pdo_ATTR_STATEMENT_CLASS_ctor_arg_gc.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
4949
$db = PDOTest::factory();
5050
PDOTest::dropTableIfExists($db, "pdo_attr_statement_class_ctor_arg_gc");
5151
?>
52-
--EXPECT--
53-
object(Bar)#1 (1) {
52+
--EXPECTF--
53+
object(Bar)#%d (1) {
5454
["statementClass"]=>
5555
string(3) "Foo"
5656
}

‎ext/pdo/tests/attr_statement_class/pdo_ATTR_STATEMENT_CLASS_cyclic_ctor_args.phpt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
4242
$db = PDOTest::factory();
4343
PDOTest::dropTableIfExists($db, "pdo_attr_statement_class_cyclic_ctor_args");
4444
?>
45-
--EXPECT--
45+
--EXPECTF--
4646
array(1) {
4747
[0]=>
4848
string(12) "PDOStatement"
4949
}
5050
bool(true)
51-
object(PDO)#1 (0) {
51+
object(PDO)#%d (0) {
5252
}
53-
object(HoldPdo)#2 (2) {
53+
object(HoldPdo)#%d (2) {
5454
["queryString"]=>
5555
string(79) "SELECT id, label FROM pdo_attr_statement_class_cyclic_ctor_args ORDER BY id ASC"
5656
["v"]=>
57-
object(PDO)#1 (0) {
57+
object(PDO)#%d (0) {
5858
}
5959
}

‎ext/pdo/tests/attr_statement_class/pdo_prepare_ATTR_STATEMENT_CLASS_ctor_arg_gc.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
5151
$db = PDOTest::factory();
5252
PDOTest::dropTableIfExists($db, "pdo_prepare_attr_statement_class_ctor_arg_gc");
5353
?>
54-
--EXPECT--
55-
object(Bar)#1 (1) {
54+
--EXPECTF--
55+
object(Bar)#%d (1) {
5656
["statementClass"]=>
5757
string(3) "Foo"
5858
}

‎ext/pdo/tests/pdo_027.phpt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
3636
$db = PDOTest::factory();
3737
PDOTest::dropTableIfExists($db, "test027");
3838
?>
39-
--EXPECT--
40-
object(PDOStatement)#2 (1) {
39+
--EXPECTF--
40+
object(PDOStatement)#%d (1) {
4141
["queryString"]=>
4242
string(21) "SELECT * FROM test027"
4343
}
4444
bool(false)
45-
object(PDORow)#4 (3) {
45+
object(PDORow)#%d (3) {
4646
["queryString"]=>
4747
string(21) "SELECT * FROM test027"
4848
["id"]=>
@@ -52,7 +52,7 @@ object(PDORow)#4 (3) {
5252
}
5353
lazy: 1test1
5454
bool(true)
55-
object(PDORow)#4 (3) {
55+
object(PDORow)#%d (3) {
5656
["queryString"]=>
5757
string(21) "SELECT * FROM test027"
5858
["id"]=>

‎ext/pdo/tests/pdo_query_fetch_lazy001.phpt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
2929
$db = PDOTest::factory();
3030
PDOTest::dropTableIfExists($db, "pdo_query_fetch_lazy_001");
3131
?>
32-
--EXPECT--
33-
object(PDOStatement)#2 (1) {
32+
--EXPECTF--
33+
object(PDOStatement)#%d (1) {
3434
["queryString"]=>
3535
string(38) "SELECT * FROM pdo_query_fetch_lazy_001"
3636
}

‎ext/pdo_pgsql/tests/bug75402.phpt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc';
8888
$db = PDOTest::test_factory(__DIR__ . '/common.phpt');
8989
$db->exec('DROP TABLE IF EXISTS bug75402');
9090
?>
91-
--EXPECT--
92-
object(stdClass)#2 (1) {
91+
--EXPECTF--
92+
object(stdClass)#%d (1) {
9393
["entries"]=>
9494
array(1) {
9595
[0]=>
96-
object(stdClass)#4 (10) {
96+
object(stdClass)#%d (10) {
9797
["sid"]=>
9898
string(19) "20171016083645_5337"
9999
["sgroupid"]=>

0 commit comments

Comments
 (0)