@@ -18,19 +18,6 @@ $tests = array(
18
18
throws (function () {
19
19
$ regexp = new BSON \Regex ;
20
20
}, "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 " );
34
21
35
22
36
23
foreach ($ tests as $ n => $ test ) {
@@ -49,9 +36,6 @@ Pattern: regexp
49
36
Flags: i
50
37
String representation: /regexp/i
51
38
OK: Got InvalidArgumentException
52
- OK: Got InvalidArgumentException thrown from getPattern
53
- OK: Got InvalidArgumentException thrown from getFlags
54
- OK: Got InvalidArgumentException thrown from __toString
55
39
Test#0 { "regex" : { "$regex" : "regexp", "$options" : "i" } }
56
40
string(55) "{ "regex" : { "$regex" : "regexp", "$options" : "i" } }"
57
41
string(55) "{ "regex" : { "$regex" : "regexp", "$options" : "i" } }"
0 commit comments