Changeset 63366 for trunk/tests/phpunit/tests/functions/wpParseList.php
- Timestamp:
- 08/27/2026 07:00:51 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/wpParseList.php
r62797 r63366 15 15 * @dataProvider data_wp_parse_list 16 16 * 17 * @param mixed[]|string $input_list17 * @param mixed[]|string|int $input_list 18 18 * @param array<scalar> $expected 19 19 */ … … 36 36 * Data provider. 37 37 * 38 * @return array<string, array{ input_list: mixed[]|string , expected: array<scalar> }>38 * @return array<string, array{ input_list: mixed[]|string|int, expected: array<scalar> }> 39 39 */ 40 40 public function data_wp_parse_list(): array { … … 84 84 'expected' => array(), 85 85 ), 86 'positive int' => array( 87 'input_list' => 5, 88 'expected' => array( '5' ), 89 ), 90 'negative int' => array( 91 'input_list' => -5, 92 'expected' => array( '-5' ), 93 ), 94 'zero' => array( 95 'input_list' => 0, 96 'expected' => array( '0' ), 97 ), 98 'comma in array item' => array( 99 'input_list' => array( '1,2' ), 100 'expected' => array( '1,2' ), 101 ), 86 102 'passed scalar array' => array( 87 103 'input_list' => array( 'foo', true, false, 1, 3.14 ),
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)