@@ -151,12 +151,12 @@ function getParamsForValid(array $test, array $case)
151151 $ expect .= $ expectedCanonicalBson . "\n" ;
152152
153153 $ code .= "\n// Canonical BSON -> Canonical extJSON \n" ;
154- $ code .= 'echo json_canonicalize(toCanonicalJSON ($canonicalBson)), "\n"; ' . "\n" ;;
154+ $ code .= 'echo json_canonicalize(toCanonicalExtendedJSON ($canonicalBson)), "\n"; ' . "\n" ;;
155155 $ expect .= $ expectedCanonicalExtJson . "\n" ;
156156
157157 if (isset ($ relaxedExtJson )) {
158158 $ code .= "\n// Canonical BSON -> Relaxed extJSON \n" ;
159- $ code .= 'echo json_canonicalize(toRelaxedJSON ($canonicalBson)), "\n"; ' . "\n" ;;
159+ $ code .= 'echo json_canonicalize(toRelaxedExtendedJSON ($canonicalBson)), "\n"; ' . "\n" ;;
160160 $ expect .= $ expectedRelaxedExtJson . "\n" ;
161161 }
162162
@@ -172,12 +172,12 @@ function getParamsForValid(array $test, array $case)
172172 $ expect .= $ expectedCanonicalBson . "\n" ;
173173
174174 $ code .= "\n// Degenerate BSON -> Canonical extJSON \n" ;
175- $ code .= 'echo json_canonicalize(toCanonicalJSON ($degenerateBson)), "\n"; ' . "\n" ;;
175+ $ code .= 'echo json_canonicalize(toCanonicalExtendedJSON ($degenerateBson)), "\n"; ' . "\n" ;;
176176 $ expect .= $ expectedCanonicalExtJson . "\n" ;
177177
178178 if (isset ($ relaxedExtJson )) {
179179 $ code .= "\n// Degenerate BSON -> Relaxed extJSON \n" ;
180- $ code .= 'echo json_canonicalize(toRelaxedJSON ($degenerateBson)), "\n"; ' . "\n" ;;
180+ $ code .= 'echo json_canonicalize(toRelaxedExtendedJSON ($degenerateBson)), "\n"; ' . "\n" ;;
181181 $ expect .= $ expectedRelaxedExtJson . "\n" ;
182182 }
183183 }
@@ -190,7 +190,7 @@ function getParamsForValid(array $test, array $case)
190190
191191 if (isset ($ relaxedExtJson )) {
192192 $ code .= "\n// Relaxed extJSON -> BSON -> Relaxed extJSON \n" ;
193- $ code .= 'echo json_canonicalize(toRelaxedJSON (fromJSON($relaxedExtJson))), "\n"; ' . "\n" ;
193+ $ code .= 'echo json_canonicalize(toRelaxedExtendedJSON (fromJSON($relaxedExtJson))), "\n"; ' . "\n" ;
194194 $ expect .= $ expectedRelaxedExtJson . "\n" ;
195195 }
196196
0 commit comments