WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/19/2020 03:52:03 PM (6 weeks ago)
Author:
SergeyBiryukov
Message:

Tests: Add missing @covers tags for files in phpunit/tests/functions/.

Props pbearne, jrf.
See #39265.

File:
1 edited

Legend:

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

    r47780 r49006  
    99class Tests_Functions_UnderscoreReturn extends WP_UnitTestCase {
    1010
     11    /**
     12     * @covers ::__return_true
     13     */
    1114    public function test__return_true() {
    1215        $this->assertTrue( __return_true() );
    1316    }
    1417
     18    /**
     19     * @covers ::__return_false
     20     */
    1521    public function test__return_false() {
    1622        $this->assertFalse( __return_false() );
    1723    }
    1824
     25    /**
     26     * @covers ::__return_zero
     27     */
    1928    public function test__return_zero() {
    2029        $this->assertSame( 0, __return_zero() );
    2130    }
    2231
     32    /**
     33     * @covers ::__return_empty_array
     34     */
    2335    public function test__return_empty_array() {
    2436        $this->assertSame( array(), __return_empty_array() );
    2537    }
    2638
     39    /**
     40     * @covers ::__return_null
     41     */
    2742    public function test__return_null() {
    2843        $this->assertNull( __return_null() );
    2944    }
    3045
     46    /**
     47     * @covers ::__return_empty_string
     48     */
    3149    public function test__return_empty_string() {
    3250        $this->assertSame( '', __return_empty_string() );
Note: See TracChangeset for help on using the changeset viewer.