WordPress.org

Make WordPress Core

Changeset 48221


Ignore:
Timestamp:
06/30/2020 12:41:57 AM (6 days ago)
Author:
SergeyBiryukov
Message:

Docs: Remove @return void from some tests, per the documentation standards.

See #49572.

Location:
trunk/tests/phpunit/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/deprecated.php

    r47780 r48221  
    1212
    1313    /**
    14      * List of functions that have been passed through _deprecated_function()
     14     * List of functions that have been passed through _deprecated_function().
    1515     *
    1616     * @var string[]
     
    1919
    2020    /**
    21      * List of arguments that have been passed through _deprecated_argument()
     21     * List of arguments that have been passed through _deprecated_argument().
    2222     *
    2323     * @var string[]
     
    2626
    2727    /**
    28      * List of files that have been passed through _deprecated_file()
     28     * List of files that have been passed through _deprecated_file().
    2929     *
    3030     * @var string[]
     
    3333
    3434    /**
    35      * Set up the test fixture
    36      *
    37      * @return void
     35     * Sets up the test fixture.
    3836     */
    3937    public function setUp() {
     
    5149
    5250    /**
    53      * Tear down the test fixture
    54      *
    55      * @return void
     51     * Tears down the test fixture.
    5652     */
    5753    public function teardown() {
     
    6662
    6763    /**
    68      * Catch functions that have passed through _deprecated_function
     64     * Catches functions that have passed through _deprecated_function().
    6965     *
    7066     * @param string $function
    7167     * @param string $replacement
    7268     * @param float $version
    73      * @return void
    7469     */
    7570    public function deprecated_function( $function, $replacement, $version ) {
     
    8277
    8378    /**
    84      * Catch arguments that have passed through _deprecated_argument
     79     * Catches arguments that have passed through _deprecated_argument().
    8580     *
    8681     * @param string $argument
    8782     * @param string $message
    8883     * @param float $version
    89      * @return void
    9084     */
    9185    public function deprecated_argument( $argument, $message, $version ) {
     
    9892
    9993    /**
    100      * Catch arguments that have passed through _deprecated_argument
     94     * Catches arguments that have passed through _deprecated_argument().
    10195     *
    10296     * @param string $argument
    10397     * @param string $message
    10498     * @param float $version
    105      * @return void
    10699     */
    107100    public function deprecated_file( $file, $version, $replacement, $message ) {
     
    115108
    116109    /**
    117      * Check if something was deprecated
     110     * Checks if something was deprecated.
    118111     *
    119112     * @param string $type argument|function|file
     
    144137
    145138    /**
    146      * Test that wp_save_image_file has a deprecated argument when passed a GD resource
     139     * Tests that wp_save_image_file() has a deprecated argument when passed a GD resource.
    147140     *
    148141     * @ticket 6821
     
    168161
    169162    /**
    170      * Test that wp_save_image_file doesn't have a deprecated argument when passed a WP_Image_Editor
     163     * Tests that wp_save_image_file() doesn't have a deprecated argument when passed a WP_Image_Editor.
    171164     *
    172165     * @ticket 6821
  • trunk/tests/phpunit/tests/image/meta.php

    r47122 r48221  
    131131
    132132    /**
    133      * wp_read_image_metadata() should false if the image file doesn't exist
    134      *
    135      * @return void
     133     * wp_read_image_metadata() should return false if the image file doesn't exist.
    136134     */
    137135    public function test_missing_image_file() {
  • trunk/tests/phpunit/tests/kses.php

    r48139 r48221  
    7474     * @param string $context  Context to use for parsing source.
    7575     * @param string $expected Expected output following KSES parsing.
    76      * @return void
    7776     */
    7877    function test_wp_kses_video( $source, $context, $expected ) {
Note: See TracChangeset for help on using the changeset viewer.