Skip to content

Commit 1904f7e

Browse files
committed
Invalid namespace tests needs STANDALONE
In b29c423 for PHPC-1057, Manager's execute methods were changed to perform server selection before invoking the phongo_execute functions, which throw InvalidArgumentExceptions such as this. Without a running standalone server, this test will encounter a server selection failure before we have a chance to parse the namespace string.
1 parent f5d1084 commit 1904f7e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/manager/manager-invalidnamespace.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
MongoDB\Driver\Manager: Invalid namespace
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"?>
5+
<?php NEEDS('STANDALONE'); ?>
56
--FILE--
67
<?php
78
require_once __DIR__ . "/../utils/basic.inc";

tests/standalone/bug0357.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
PHPC-357: The exception for "invalid namespace" does not list the broken name
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
5+
<?php NEEDS('STANDALONE'); ?>
56
--FILE--
67
<?php
78
require_once __DIR__ . "/../utils/basic.inc";

0 commit comments

Comments
 (0)