Changeset 53477 for trunk/tests/phpunit/tests/pluggable.php
- Timestamp:
- 06/07/2022 12:01:09 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pluggable.php
r53473 r53477 357 357 358 358 /** 359 * Tests that wp_rand() returns zero .359 * Tests that wp_rand() returns zero when `$min` and `$max` are zero. 360 360 * 361 361 * @ticket 55194 362 * @dataProvider data_wp_rand_should_return_zero 362 * @dataProvider data_wp_rand_should_return_zero_when_min_and_max_are_zero 363 363 * @covers ::wp_rand 364 364 * … … 366 366 * @param mixed $max Upper limit for the generated number. 367 367 */ 368 public function test_wp_rand_should_return_zero ( $min, $max ) {368 public function test_wp_rand_should_return_zero_when_min_and_max_are_zero( $min, $max ) { 369 369 $this->assertSame( 0, wp_rand( $min, $max ) ); 370 370 } … … 375 375 * @return array 376 376 */ 377 public function data_wp_rand_should_return_zero () {377 public function data_wp_rand_should_return_zero_when_min_and_max_are_zero() { 378 378 return array( 379 379 'min and max as 0' => array( … … 393 393 394 394 /** 395 * Tests that wp_rand() returns a value between 1 and 99.395 * Tests that wp_rand() returns a positive integer for both positive and negative input. 396 396 * 397 397 * @ticket 55194 398 * @dataProvider data_wp_rand_should_return_ between_1_and_99398 * @dataProvider data_wp_rand_should_return_a_positive_integer 399 399 * @covers ::wp_rand 400 400 * … … 402 402 * @param int $max Upper limit for the generated number. 403 403 */ 404 public function test_wp_rand_should_return_ between_1_and_99( $min, $max ) {404 public function test_wp_rand_should_return_a_positive_integer( $min, $max ) { 405 405 $this->assertGreaterThan( 406 406 0, … … 421 421 * @return array 422 422 */ 423 public function data_wp_rand_should_return_ between_1_and_99() {423 public function data_wp_rand_should_return_a_positive_integer() { 424 424 return array( 425 425 '1 and 99' => array(
Note: See TracChangeset
for help on using the changeset viewer.