Make WordPress Core


Ignore:
Timestamp:
07/13/2021 10:43:42 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Tests: Clean up skipping conditions and requirements for various tests.

This improves the consistency of test skipping and ensures that:

  • The @requires annotations use the right condition and format, and are on the right level (class vs. function).
  • Inline conditions with a markTestSkipped() call are only used when annotations cannot be used.
  • All markTestSkipped() calls contain a verbose explanation of why the test is being skipped.

Props jrf, hellofromTonya.
Fixes #53009.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/editorGd.php

    r50491 r51415  
    5454    /**
    5555     * Test resizing an image, not using crop
     56     *
     57     * @requires function imagejpeg
    5658     */
    5759    public function test_resize() {
     
    7476    /**
    7577     * Test multi_resize with single image resize and no crop
     78     *
     79     * @requires function imagejpeg
    7680     */
    7781    public function test_single_multi_resize() {
     
    184188     *
    185189     * @ticket 26823
     190     * @requires function imagejpeg
    186191     */
    187192    public function test_multi_resize() {
Note: See TracChangeset for help on using the changeset viewer.