Make WordPress Core


Ignore:
Timestamp:
07/02/2019 04:43:01 AM (5 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in tests.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/db/charset.php

    r42343 r45588  
    455455
    456456        // The data above is easy to edit. Now, prepare it for the data provider.
    457         $data_provider = $multiple = $multiple_expected = array();
     457        $data_provider     = array();
     458        $multiple          = array();
     459        $multiple_expected = array();
    458460        foreach ( $fields as $test_case => $field ) {
    459461            $expected          = $field;
     
    583585        unset( $vars['charset'] );
    584586        foreach ( $vars as $var_name => $var ) {
    585             $data = $expected = $var;
     587            $data     = $var;
     588            $expected = $var;
    586589            foreach ( $data as &$datum ) {
    587590                // 'charset' and 'ascii' are part of the expected return only.
Note: See TracChangeset for help on using the changeset viewer.