Changeset 43571 for trunk/tests/phpunit/tests/functions.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions.php
r43503 r43571 15 15 'yZ' => 'baba', 16 16 'a' => array( 5, 111, 'x' ), 17 ), wp_parse_args( $x ) 17 ), 18 wp_parse_args( $x ) 18 19 ); 19 20 $y = new MockClass; … … 35 36 'yZ' => 'baba', 36 37 'a' => array( 5, 111, 'x' ), 37 ), wp_parse_args( $b ) 38 ), 39 wp_parse_args( $b ) 38 40 ); 39 41 } … … 51 53 'yZ' => 'baba', 52 54 'a' => array( 5, 111, 'x' ), 53 ), wp_parse_args( $x, $d ) 55 ), 56 wp_parse_args( $x, $d ) 54 57 ); 55 58 $e = array( '_baba' => 6 ); … … 59 62 'yZ' => 'baba', 60 63 'a' => array( 5, 111, 'x' ), 61 ), wp_parse_args( $x, $e ) 64 ), 65 wp_parse_args( $x, $e ) 62 66 ); 63 67 } … … 300 304 $this->assertEquals( "$url?foo=1", add_query_arg( array( 'foo' => '1' ), $url ) ); 301 305 $this->assertEquals( 302 "$url?foo=2", add_query_arg( 306 "$url?foo=2", 307 add_query_arg( 303 308 array( 304 309 'foo' => '1', 305 310 'foo' => '2', 306 ), $url 311 ), 312 $url 307 313 ) 308 314 ); 309 315 $this->assertEquals( 310 "$url?foo=1&bar=2", add_query_arg( 316 "$url?foo=1&bar=2", 317 add_query_arg( 311 318 array( 312 319 'foo' => '1', 313 320 'bar' => '2', 314 ), $url 321 ), 322 $url 315 323 ) 316 324 ); … … 321 329 $this->assertEquals( "$url?foo=1", add_query_arg( array( 'foo' => '1' ) ) ); 322 330 $this->assertEquals( 323 "$url?foo=2", add_query_arg( 331 "$url?foo=2", 332 add_query_arg( 324 333 array( 325 334 'foo' => '1', … … 329 338 ); 330 339 $this->assertEquals( 331 "$url?foo=1&bar=2", add_query_arg( 340 "$url?foo=1&bar=2", 341 add_query_arg( 332 342 array( 333 343 'foo' => '1', … … 345 355 $this->assertEquals( "$url?foo=1#frag", add_query_arg( array( 'foo' => '1' ), $frag_url ) ); 346 356 $this->assertEquals( 347 "$url?foo=2#frag", add_query_arg( 357 "$url?foo=2#frag", 358 add_query_arg( 348 359 array( 349 360 'foo' => '1', 350 361 'foo' => '2', 351 ), $frag_url 362 ), 363 $frag_url 352 364 ) 353 365 ); 354 366 $this->assertEquals( 355 "$url?foo=1&bar=2#frag", add_query_arg( 367 "$url?foo=1&bar=2#frag", 368 add_query_arg( 356 369 array( 357 370 'foo' => '1', 358 371 'bar' => '2', 359 ), $frag_url 372 ), 373 $frag_url 360 374 ) 361 375 ); … … 366 380 $this->assertEquals( "$url?foo=1#frag", add_query_arg( array( 'foo' => '1' ) ) ); 367 381 $this->assertEquals( 368 "$url?foo=2#frag", add_query_arg( 382 "$url?foo=2#frag", 383 add_query_arg( 369 384 array( 370 385 'foo' => '1', … … 374 389 ); 375 390 $this->assertEquals( 376 "$url?foo=1&bar=2#frag", add_query_arg( 391 "$url?foo=1&bar=2#frag", 392 add_query_arg( 377 393 array( 378 394 'foo' => '1', … … 401 417 $this->assertEquals( "$url&foo=1", add_query_arg( array( 'foo' => '1' ), $url ) ); 402 418 $this->assertEquals( 403 "$url&foo=2", add_query_arg( 419 "$url&foo=2", 420 add_query_arg( 404 421 array( 405 422 'foo' => '1', 406 423 'foo' => '2', 407 ), $url 424 ), 425 $url 408 426 ) 409 427 ); 410 428 $this->assertEquals( 411 "$url&foo=1&bar=2", add_query_arg( 429 "$url&foo=1&bar=2", 430 add_query_arg( 412 431 array( 413 432 'foo' => '1', 414 433 'bar' => '2', 415 ), $url 434 ), 435 $url 416 436 ) 417 437 ); … … 422 442 $this->assertEquals( "$url&foo=1", add_query_arg( array( 'foo' => '1' ) ) ); 423 443 $this->assertEquals( 424 "$url&foo=2", add_query_arg( 444 "$url&foo=2", 445 add_query_arg( 425 446 array( 426 447 'foo' => '1', … … 430 451 ); 431 452 $this->assertEquals( 432 "$url&foo=1&bar=2", add_query_arg( 453 "$url&foo=1&bar=2", 454 add_query_arg( 433 455 array( 434 456 'foo' => '1', … … 453 475 'foo' => 'bar', 454 476 '1' => '2', 455 ), '1=1' 477 ), 478 '1=1' 456 479 ); 457 480 $this->assertEquals( '1=2&foo=bar', $url ); … … 1271 1294 if ( ! is_multisite() ) { 1272 1295 $data = array_merge( 1273 $data, array( 1296 $data, 1297 array( 1274 1298 // Standard non-image file. 1275 1299 array(
Note: See TracChangeset
for help on using the changeset viewer.