@@ -18,19 +18,6 @@ $tests = array(
1818throws (function () {
1919 $ regexp = new BSON \Regex ;
2020}, "InvalidArgumentException " );
21- throws (function () {
22- $ regexp = new BSON \Regex ("regexp " , "i " );
23- $ regexp ->getPattern (1 );
24- }, "InvalidArgumentException " , "getPattern " );
25- throws (function () {
26- $ regexp = new BSON \Regex ("regexp " , "i " );
27- $ regexp ->getFlags (1 );
28- }, "InvalidArgumentException " , "getFlags " );
29-
30- throws (function () {
31- $ regexp = new BSON \Regex ("regexp " , "i " );
32- $ regexp ->__toString (1 );
33- }, "InvalidArgumentException " , "__toString " );
3421
3522
3623foreach ($ tests as $ n => $ test ) {
@@ -49,9 +36,6 @@ Pattern: regexp
4936Flags: i
5037String representation: /regexp/i
5138OK: Got InvalidArgumentException
52- OK: Got InvalidArgumentException thrown from getPattern
53- OK: Got InvalidArgumentException thrown from getFlags
54- OK: Got InvalidArgumentException thrown from __toString
5539Test#0 { "regex" : { "$regex" : "regexp", "$options" : "i" } }
5640string(55) "{ "regex" : { "$regex" : "regexp", "$options" : "i" } }"
5741string(55) "{ "regex" : { "$regex" : "regexp", "$options" : "i" } }"
0 commit comments