Changeset 48221 for trunk/tests/phpunit/tests/functions/deprecated.php
- Timestamp:
- 06/30/2020 12:41:57 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/deprecated.php
r47780 r48221 12 12 13 13 /** 14 * List of functions that have been passed through _deprecated_function() 14 * List of functions that have been passed through _deprecated_function(). 15 15 * 16 16 * @var string[] … … 19 19 20 20 /** 21 * List of arguments that have been passed through _deprecated_argument() 21 * List of arguments that have been passed through _deprecated_argument(). 22 22 * 23 23 * @var string[] … … 26 26 27 27 /** 28 * List of files that have been passed through _deprecated_file() 28 * List of files that have been passed through _deprecated_file(). 29 29 * 30 30 * @var string[] … … 33 33 34 34 /** 35 * Set up the test fixture 36 * 37 * @return void 35 * Sets up the test fixture. 38 36 */ 39 37 public function setUp() { … … 51 49 52 50 /** 53 * Tear down the test fixture 54 * 55 * @return void 51 * Tears down the test fixture. 56 52 */ 57 53 public function teardown() { … … 66 62 67 63 /** 68 * Catch functions that have passed through _deprecated_function64 * Catches functions that have passed through _deprecated_function(). 69 65 * 70 66 * @param string $function 71 67 * @param string $replacement 72 68 * @param float $version 73 * @return void74 69 */ 75 70 public function deprecated_function( $function, $replacement, $version ) { … … 82 77 83 78 /** 84 * Catch arguments that have passed through _deprecated_argument79 * Catches arguments that have passed through _deprecated_argument(). 85 80 * 86 81 * @param string $argument 87 82 * @param string $message 88 83 * @param float $version 89 * @return void90 84 */ 91 85 public function deprecated_argument( $argument, $message, $version ) { … … 98 92 99 93 /** 100 * Catch arguments that have passed through _deprecated_argument94 * Catches arguments that have passed through _deprecated_argument(). 101 95 * 102 96 * @param string $argument 103 97 * @param string $message 104 98 * @param float $version 105 * @return void106 99 */ 107 100 public function deprecated_file( $file, $version, $replacement, $message ) { … … 115 108 116 109 /** 117 * Check if something was deprecated110 * Checks if something was deprecated. 118 111 * 119 112 * @param string $type argument|function|file … … 144 137 145 138 /** 146 * Test that wp_save_image_file has a deprecated argument when passed a GD resource139 * Tests that wp_save_image_file() has a deprecated argument when passed a GD resource. 147 140 * 148 141 * @ticket 6821 … … 168 161 169 162 /** 170 * Test that wp_save_image_file doesn't have a deprecated argument when passed a WP_Image_Editor163 * Tests that wp_save_image_file() doesn't have a deprecated argument when passed a WP_Image_Editor. 171 164 * 172 165 * @ticket 6821
Note: See TracChangeset
for help on using the changeset viewer.