Skip to content

Commit b9fa29f

Browse files
bjorijmikola
authored andcommitted
bump debug tests after slight tracing changes
1 parent d017a80 commit b9fa29f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

tests/manager/manager-debug-001.phpt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
MongoDB\Driver\Manager: Constructing invalid manager
2+
MongoDB\Driver\Manager: Writing debug log files
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
55
--FILE--
@@ -19,14 +19,17 @@ unlink($file);
1919
rmdir($name);
2020

2121
echo $content[0];
22-
echo $content[1];
23-
echo $content[2];
22+
foreach($content as $line) {
23+
if (strpos($line, "mongoc_bulk_operation_execute")) {
24+
echo $line;
25+
}
26+
}
2427

2528
?>
2629
===DONE===
2730
<?php exit(0); ?>
2831
--EXPECTF--
2932
[%s] PHONGO: DEBUG > Creating Manager, phongo-0.%d.%d[%s] - mongoc-1.%s, libbson-1.%s
30-
[%s] PHONGO: DEBUG > Connecting to 'mongodb://%s'
31-
[%s] client: DEBUG > Using custom stream initiator.
33+
[%s] mongoc: TRACE > ENTRY: mongoc_bulk_operation_execute():%d
34+
[%s] mongoc: TRACE > EXIT: mongoc_bulk_operation_execute():%d
3235
===DONE===

tests/manager/manager-debug-002.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ ini_set("mongodb.debug", "off");
1919
<?php exit(0); ?>
2020
--EXPECTF--
2121
%a
22-
[%s] PHONGO: TRACE > ENTRY: php_phongo_make_mongo_client():%d
2322
[%s] PHONGO: DEBUG > Creating Manager, phongo-0.%d.%d[%s] - mongoc-1.%s, libbson-1.%s
24-
[%s] PHONGO: DEBUG > Connecting to 'mongodb://%s'
25-
[%s] client: DEBUG > Using custom stream initiator.
23+
%a
24+
[%s] PHONGO: DEBUG > Connecting to '%s:%d[mongodb://%s:%d]'
2625
%a
2726
===DONE===

tests/manager/manager-debug-003.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,5 @@ ini_set("mongodb.debug", "off");
2121
%a
2222
[%s] PHONGO: TRACE > ENTRY: php_phongo_make_mongo_client():%d
2323
[%s] PHONGO: DEBUG > Creating Manager, phongo-0.%d.%d[%s] - mongoc-1.%s, libbson-1.%s
24-
[%s] PHONGO: DEBUG > Connecting to 'mongodb://%s'
25-
[%s] client: DEBUG > Using custom stream initiator.
2624
%a
2725
===DONE===

0 commit comments

Comments
 (0)