Make WordPress Core


Ignore:
Timestamp:
06/23/2022 08:27:34 PM (4 years ago)
Author:
azaozz
Message:

Build/Test Tools, Formatting group:

  • Add and update @covers tags.
  • Add and improve docs and inline comments.

Props pbeane, hellofromTonya, antonvlasenko, ironprogrammer, SergeyBiryukov, costdev.
See #39265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/date.php

    r52010 r53562  
    1111     *
    1212     * @ticket 20328
     13     *
     14     * @covers ::get_date_from_gmt
    1315     */
    1416    public function test_get_date_from_gmt_outside_of_dst() {
     
    2325     *
    2426     * @ticket 20328
     27     *
     28     * @covers ::get_date_from_gmt
    2529     */
    2630    public function test_get_date_from_gmt_during_dst() {
     
    3337    /**
    3438     * @ticket 20328
     39     *
     40     * @covers ::get_gmt_from_date
    3541     */
    3642    public function test_get_gmt_from_date_outside_of_dst() {
     
    4349    /**
    4450     * @ticket 20328
     51     *
     52     * @covers ::get_gmt_from_date
    4553     */
    4654    public function test_get_gmt_from_date_during_dst() {
     
    5361    /**
    5462     * @ticket 34279
     63     *
     64     * @covers ::get_date_from_gmt
     65     *
    5566     */
    5667    public function test_get_date_and_time_from_gmt_no_timezone() {
     
    6273    /**
    6374     * @ticket 34279
     75     *
     76     * @covers ::get_gmt_from_date
    6477     */
    6578    public function test_get_gmt_from_date_no_timezone() {
     
    7184    /**
    7285     * @ticket 34279
     86     *
     87     * @covers ::get_gmt_from_date
    7388     */
    7489    public function test_get_gmt_from_date_short_date() {
     
    8196    /**
    8297     * @ticket 34279
     98     *
     99     * @covers ::get_gmt_from_date
    83100     */
    84101    public function test_get_gmt_from_date_string_date() {
     
    91108    /**
    92109     * @ticket 34279
     110     *
     111     * @covers ::get_gmt_from_date
    93112     */
    94113    public function test_get_gmt_from_date_string_date_no_timezone() {
     
    102121     *
    103122     * @dataProvider timezone_provider
     123     *
     124     * @covers ::get_gmt_from_date
    104125     */
    105126    public function test_gmt_from_date_correct_time( $timezone_string, $gmt_offset ) {
     
    118139     *
    119140     * @dataProvider timezone_provider
     141     *
     142     * @covers ::get_date_from_gmt
    120143     */
    121144    public function test_date_from_gmt_correct_time( $timezone_string, $gmt_offset ) {
     
    134157     *
    135158     * @dataProvider timezone_provider
     159     *
     160     * @covers ::iso8601_to_datetime
    136161     */
    137162    public function test_is8601_to_datetime_correct_time( $timezone_string, $gmt_offset ) {
Note: See TracChangeset for help on using the changeset viewer.