- Timestamp:
- 02/28/2024 09:44:40 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/sanitizeHexColor.php
r57733 r57735 8 8 * @covers ::sanitize_hex_color 9 9 */ 10 class Tests_Formatting_ sanitizeHexColor extends WP_UnitTestCase {10 class Tests_Formatting_SanitizeHexColor extends WP_UnitTestCase { 11 11 12 12 /** 13 13 * @ticket 60270 14 14 * 15 * @dataProvider date_sanitize_hex_color 15 * @dataProvider data_sanitize_hex_color 16 * 17 * @param string $color Color. 18 * @param string $expected Expected. 16 19 */ 17 20 public function test_sanitize_hex_color( $color, $expected ) { … … 20 23 21 24 /** 22 * @return array 25 * Data provider for test_sanitize_hex_color(). 26 * 27 * @return array[] 23 28 */ 24 public function dat e_sanitize_hex_color() {29 public function data_sanitize_hex_color() { 25 30 return array( 26 31 '$maybe_alpha = false, 3 digit' => array(
Note: See TracChangeset
for help on using the changeset viewer.