Skip to content

Commit a541690

Browse files
committed
Use the MONGODB_URI constant
1 parent 2d88ca2 commit a541690

21 files changed

+46
-40
lines changed

tests/batch/write-0002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ printf("hannes: %s\nhayley: %s\n", $hannes_id, $hayley_id);
3333
===DONE===
3434
<?php exit(0); ?>
3535
--EXPECTF--
36-
Inserted 2 documents to localhost
36+
Inserted 2 documents to %s
3737
hannes: %s
3838
hayley: %s
3939
===DONE===

tests/standalone/manager-executeCommand-001.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var_dump($server->getPort());
2828
?>
2929
===DONE===
3030
<?php exit(0); ?>
31-
--EXPECT--
31+
--EXPECTF--
3232
bool(true)
3333
Dumping response document:
3434
array(1) {
@@ -44,6 +44,6 @@ array(1) {
4444
}
4545
}
4646
bool(true)
47-
string(9) "localhost"
48-
int(27017)
47+
string(%d) "%s"
48+
int(%d)
4949
===DONE===

tests/standalone/manager-executeDelete-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ var_dump(iterator_to_array($cursor));
2424
?>
2525
===DONE===
2626
<?php exit(0); ?>
27-
--EXPECT--
27+
--EXPECTF--
2828
===> WriteResult
29-
server: localhost:27017
29+
server: %s:%d
3030
insertedCount: 0
3131
matchedCount: 0
3232
modifiedCount: 0

tests/standalone/manager-executeDelete-002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ var_dump(iterator_to_array($cursor));
2525
?>
2626
===DONE===
2727
<?php exit(0); ?>
28-
--EXPECT--
28+
--EXPECTF--
2929
===> WriteResult
30-
server: localhost:27017
30+
server: %s:%d
3131
insertedCount: 0
3232
matchedCount: 0
3333
modifiedCount: 0

tests/standalone/manager-executeInsert-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ var_dump(iterator_to_array($cursor));
2020
?>
2121
===DONE===
2222
<?php exit(0); ?>
23-
--EXPECT--
23+
--EXPECTF--
2424
===> WriteResult
25-
server: localhost:27017
25+
server: %s:%d
2626
insertedCount: 1
2727
matchedCount: 0
2828
modifiedCount: 0

tests/standalone/manager-executeQuery-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ var_dump(iterator_to_array($cursor));
3131
?>
3232
===DONE===
3333
<?php exit(0); ?>
34-
--EXPECT--
34+
--EXPECTF--
3535
bool(true)
3636
bool(true)
37-
string(9) "localhost"
37+
string(%d) "%s"
3838
int(27017)
3939
array(1) {
4040
[0]=>

tests/standalone/manager-executeUpdate-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ var_dump(iterator_to_array($cursor));
2828
?>
2929
===DONE===
3030
<?php exit(0); ?>
31-
--EXPECT--
31+
--EXPECTF--
3232
===> WriteResult
33-
server: localhost:27017
33+
server: %s:%d
3434
insertedCount: 0
3535
matchedCount: 1
3636
modifiedCount: 1

tests/standalone/manager-executeUpdate-002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ var_dump(iterator_to_array($cursor));
3131
?>
3232
===DONE===
3333
<?php exit(0); ?>
34-
--EXPECT--
34+
--EXPECTF--
3535
===> WriteResult
36-
server: localhost:27017
36+
server: %s:%d
3737
insertedCount: 0
3838
matchedCount: 2
3939
modifiedCount: 2

tests/standalone/manager-executeUpdate-003.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ var_dump(iterator_to_array($cursor));
2525
?>
2626
===DONE===
2727
<?php exit(0); ?>
28-
--EXPECT--
28+
--EXPECTF--
2929
===> WriteResult
30-
server: localhost:27017
30+
server: %s:%d
3131
insertedCount: 0
3232
matchedCount: 0
3333
modifiedCount: 0

tests/standalone/manager-executeUpdate-004.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ var_dump(iterator_to_array($cursor));
2525
?>
2626
===DONE===
2727
<?php exit(0); ?>
28-
--EXPECT--
28+
--EXPECTF--
2929
===> WriteResult
30-
server: localhost:27017
30+
server: %s:%d
3131
insertedCount: 0
3232
matchedCount: 0
3333
modifiedCount: 0

0 commit comments

Comments
 (0)