Changeset 52776
- Timestamp:
- 02/19/2022 01:00:04 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/wpValidateBoolean.php
r52775 r52776 2 2 3 3 /** 4 * Tests the wp_validate_booleanfunction.4 * Tests for the wp_validate_boolean() function. 5 5 * 6 6 * @group functions.php … … 12 12 * Test wp_validate_boolean(). 13 13 * 14 * @dataProvider data_provider 15 * 16 * @param mixed $test_value 17 * @param bool $expected 14 * @dataProvider data_wp_validate_boolean 18 15 * 19 16 * @ticket 30238 20 17 * @ticket 39868 18 * 19 * @param mixed $test_value 20 * @param bool $expected 21 21 */ 22 22 public function test_wp_validate_boolean( $test_value, $expected ) { … … 25 25 26 26 /** 27 * Provides test scenarios for all possible scenarios inwp_validate_boolean().27 * Data provider for test_wp_validate_boolean(). 28 28 * 29 * @return array 29 * @return array[] Test parameters { 30 * @type string $test_value Test value. 31 * @type string $expected Expected return value. 32 * } 30 33 */ 31 public function data_ provider() {34 public function data_wp_validate_boolean() { 32 35 $std = new \stdClass(); 33 36
Note: See TracChangeset
for help on using the changeset viewer.