WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/30/2017 04:35:39 AM (5 years ago)
Author:
DrewAPicture
Message:

Tests: Add @method notations to factor class DocBlocks as a way to indicate expected return types from factory methods for the benefit of IDEs.

Props jdgrimes.
Fixes #37867.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-for-bookmark.php

    r37563 r40968  
    44 * Factory for creating fixtures for the deprecated Links/Bookmarks API.
    55 *
     6 * Note: The below @method notations are defined solely for the benefit of IDEs,
     7 * as a way to indicate expected return values from the given factory methods.
     8 *
    69 * @since 4.6.0
     10 *
     11 * @method int create( $args = array(), $generation_definitions = null )
     12 * @method object create_and_get( $args = array(), $generation_definitions = null )
     13 * @method int[] create_many( $count, $args = array(), $generation_definitions = null )
    714 */
    815class WP_UnitTest_Factory_For_Bookmark extends WP_UnitTest_Factory_For_Thing {
Note: See TracChangeset for help on using the changeset viewer.