Make WordPress Core


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the remaining issues in /tests.

All PHP files in /tests now conform to the PHP coding standards, or have exceptions appropriately marked.

Travis now also runs phpcs on the /tests directory, any future changes to these files must conform entirely to the WordPress PHP coding standards. 🎉

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/compat.php

    r43571 r45607  
    126126            $heredoc,
    127127            // object data
    128             new classA(),
    129             // undefined data
     128            new ClassA(),
     129            // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- intentionally undefined data
    130130            @$undefined_var,
    131             // unset data
     131            // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged -- intentionally unset data
    132132            @$unset_var,
    133133        );
     
    316316
    317317/* used in test_mb_substr_phpcore */
    318 class classA {
     318class ClassA {
    319319    public function __toString() {
    320320        return 'Class A object';
Note: See TracChangeset for help on using the changeset viewer.