Make WordPress Core


Ignore:
Timestamp:
07/02/2019 04:43:01 AM (7 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/user/slashes.php

    r42343 r45588  
    2828         */
    2929        function test_add_user() {
    30                 $_POST                 = $_GET = $_REQUEST = array();
     30                $_POST                 = array();
     31                $_GET                  = array();
     32                $_REQUEST              = array();
    3133                $_POST['user_login']   = 'slash_example_user_1';
    3234                $_POST['pass1']        = 'password';
     
    5052                $this->assertEquals( $this->slash_3, $user->description );
    5153
    52                 $_POST                 = $_GET = $_REQUEST = array();
     54                $_POST                 = array();
     55                $_GET                  = array();
     56                $_REQUEST              = array();
    5357                $_POST['user_login']   = 'slash_example_user_2';
    5458                $_POST['pass1']        = 'password';
     
    7983                $id = self::factory()->user->create();
    8084
    81                 $_POST                 = $_GET = $_REQUEST = array();
     85                $_POST                 = array();
     86                $_GET                  = array();
     87                $_REQUEST              = array();
    8288                $_POST['role']         = 'subscriber';
    8389                $_POST['email']        = 'user1@example.com';
     
    98104                $this->assertEquals( $this->slash_3, $user->description );
    99105
    100                 $_POST                 = $_GET = $_REQUEST = array();
     106                $_POST                 = array();
     107                $_GET                  = array();
     108                $_REQUEST              = array();
    101109                $_POST['role']         = 'subscriber';
    102110                $_POST['email']        = 'user2@example.com';
Note: See TracChangeset for help on using the changeset viewer.