Make WordPress Core

Changeset 44705


Ignore:
Timestamp:
01/28/2019 05:20:06 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Replace spaced indentation sections of phpunit.xml.dist, multisite.xml, and build.xml with tabs.

Props netweb, desrosj.
See #43218.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpunit.xml.dist

    r44702 r44705  
    11<phpunit
    2     bootstrap="tests/phpunit/includes/bootstrap.php"
    3         backupGlobals="false"
    4         colors="true"
    5         beStrictAboutTestsThatDoNotTestAnything="true"
    6         >
    7     <testsuites>
    8         <!-- Default test suite to run all tests -->
    9         <testsuite name="default">
    10             <directory suffix=".php">tests/phpunit/tests</directory>
    11             <file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file>
    12             <file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file>
    13             <file phpVersion="5.3.0">tests/phpunit/tests/image/editorGd.php</file>
    14             <file phpVersion="5.3.0">tests/phpunit/tests/image/editorImagick.php</file>
    15             <file phpVersion="5.3.0">tests/phpunit/tests/oembed/headers.php</file>
    16             <exclude>tests/phpunit/tests/actions/closures.php</exclude>
    17             <exclude>tests/phpunit/tests/image/editor.php</exclude>
    18             <exclude>tests/phpunit/tests/image/editorGd.php</exclude>
    19             <exclude>tests/phpunit/tests/image/editorImagick.php</exclude>
    20             <exclude>tests/phpunit/tests/oembed/headers.php</exclude>
    21             <exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude>
    22         </testsuite>
    23         <!-- Sets the DOING_AUTOSAVE constant, so needs to be run last -->
    24         <testsuite name="restapi-autosave">
    25             <file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file>
    26         </testsuite>
    27     </testsuites>
    28     <groups>
    29         <exclude>
    30             <group>ajax</group>
    31             <group>ms-files</group>
    32             <group>ms-required</group>
    33             <group>external-http</group>
    34         </exclude>
    35     </groups>
    36     <logging>
    37         <log type="junit" target="tests/phpunit/build/logs/junit.xml" />
    38     </logging>
    39     <php>
    40         <const name="WP_RUN_CORE_TESTS" value="1" />
    41     </php>
     2        bootstrap="tests/phpunit/includes/bootstrap.php"
     3        backupGlobals="false"
     4        colors="true"
     5        beStrictAboutTestsThatDoNotTestAnything="true"
     6        >
     7    <testsuites>
     8        <!-- Default test suite to run all tests -->
     9        <testsuite name="default">
     10            <directory suffix=".php">tests/phpunit/tests</directory>
     11            <file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file>
     12            <file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file>
     13            <file phpVersion="5.3.0">tests/phpunit/tests/image/editorGd.php</file>
     14            <file phpVersion="5.3.0">tests/phpunit/tests/image/editorImagick.php</file>
     15            <file phpVersion="5.3.0">tests/phpunit/tests/oembed/headers.php</file>
     16            <exclude>tests/phpunit/tests/actions/closures.php</exclude>
     17            <exclude>tests/phpunit/tests/image/editor.php</exclude>
     18            <exclude>tests/phpunit/tests/image/editorGd.php</exclude>
     19            <exclude>tests/phpunit/tests/image/editorImagick.php</exclude>
     20            <exclude>tests/phpunit/tests/oembed/headers.php</exclude>
     21            <exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude>
     22        </testsuite>
     23        <!-- Sets the DOING_AUTOSAVE constant, so needs to be run last -->
     24        <testsuite name="restapi-autosave">
     25            <file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file>
     26        </testsuite>
     27    </testsuites>
     28    <groups>
     29        <exclude>
     30            <group>ajax</group>
     31            <group>ms-files</group>
     32            <group>ms-required</group>
     33            <group>external-http</group>
     34        </exclude>
     35    </groups>
     36    <logging>
     37        <log type="junit" target="tests/phpunit/build/logs/junit.xml" />
     38    </logging>
     39    <php>
     40        <const name="WP_RUN_CORE_TESTS" value="1" />
     41    </php>
    4242    <listeners>
    4343        <listener class="SpeedTrapListener" file="tests/phpunit/includes/listener-loader.php">
  • trunk/tests/phpunit/build.xml

    r25165 r44705  
    11<?xml version="1.0" encoding="utf-8"?>
    22<project name="WordPress Unit Tests" default="build" basedir=".">
    3     <target name="clean">
    4         <delete dir="build" />
    5     </target>
    6     <target name="prepare">
    7         <mkdir dir="build/logs" />
    8         <mkdir dir="build/phpunitreport" />
    9     </target>
    10     <target name="phpunit">
    11         <exec command="phpunit" passthru="true"></exec>
    12         <phpunitreport infile="build/logs/junit.xml" format="frames" todir="build/phpunitreport" usesorttable="true" />
    13     </target>
    14     <target name="build" depends="clean,prepare,phpunit" />
     3    <target name="clean">
     4        <delete dir="build" />
     5    </target>
     6    <target name="prepare">
     7        <mkdir dir="build/logs" />
     8        <mkdir dir="build/phpunitreport" />
     9    </target>
     10    <target name="phpunit">
     11        <exec command="phpunit" passthru="true"></exec>
     12        <phpunitreport infile="build/logs/junit.xml" format="frames" todir="build/phpunitreport" usesorttable="true" />
     13    </target>
     14    <target name="build" depends="clean,prepare,phpunit" />
    1515</project>
  • trunk/tests/phpunit/multisite.xml

    r44704 r44705  
    11<phpunit
    22        bootstrap="includes/bootstrap.php"
    3         backupGlobals="false"
    4         colors="true"
    5         beStrictAboutTestsThatDoNotTestAnything="true"
    6         >
    7     <php>
    8         <const name="WP_TESTS_MULTISITE" value="1" />
    9     </php>
    10     <testsuites>
    11         <!-- Default test suite to run all tests -->
    12         <testsuite name="default">
    13             <directory suffix=".php">tests</directory>
    14             <file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file>
    15             <file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file>
    16             <file phpVersion="5.3.0">tests/phpunit/tests/image/editorGd.php</file>
    17             <file phpVersion="5.3.0">tests/phpunit/tests/image/editorImagick.php</file>
    18             <exclude>tests/phpunit/tests/actions/closures.php</exclude>
    19             <exclude>tests/phpunit/tests/image/editor.php</exclude>
    20             <exclude>tests/phpunit/tests/image/editorGd.php</exclude>
    21             <exclude>tests/phpunit/tests/image/editorImagick.php</exclude>
    22             <!-- Path relative to the checkout root, for PHPUnit 3.6.x -->
    23             <exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude>
    24             <!-- Same path relative to the configuration file, for PHPUnit 4.0.0+ -->
    25             <exclude>tests/rest-api/rest-autosaves-controller.php</exclude>
    26         </testsuite>
    27         <!-- Sets the DOING_AUTOSAVE constant, so needs to be run last -->
    28         <testsuite name="restapi-autosave">
    29             <!-- Path relative to the checkout root, for PHPUnit 3.6.x -->
    30             <file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file>
    31             <!-- Same path relative to the configuration file, for PHPUnit 4.0.0+ -->
    32             <file>tests/rest-api/rest-autosaves-controller.php</file>
    33         </testsuite>
    34     </testsuites>
    35     <groups>
    36         <exclude>
    37             <group>ajax</group>
    38             <group>ms-files</group>
    39             <group>ms-excluded</group>
    40             <group>external-http</group>
    41             <group>oembed-headers</group>
    42         </exclude>
    43     </groups>
    44     <php>
    45         <const name="WP_RUN_CORE_TESTS" value="1" />
    46     </php>
    47     <listeners>
    48         <listener class="SpeedTrapListener" file="tests/phpunit/includes/listener-loader.php">
    49             <arguments>
    50                 <array>
    51                     <element key="slowThreshold">
    52                         <integer>150</integer>
    53                     </element>
    54                 </array>
    55             </arguments>
    56         </listener>
    57     </listeners>
     3        backupGlobals="false"
     4        colors="true"
     5        beStrictAboutTestsThatDoNotTestAnything="true"
     6        >
     7    <php>
     8        <const name="WP_TESTS_MULTISITE" value="1" />
     9    </php>
     10    <testsuites>
     11        <!-- Default test suite to run all tests -->
     12        <testsuite name="default">
     13            <directory suffix=".php">tests</directory>
     14            <file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file>
     15            <file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file>
     16            <file phpVersion="5.3.0">tests/phpunit/tests/image/editorGd.php</file>
     17            <file phpVersion="5.3.0">tests/phpunit/tests/image/editorImagick.php</file>
     18            <exclude>tests/phpunit/tests/actions/closures.php</exclude>
     19            <exclude>tests/phpunit/tests/image/editor.php</exclude>
     20            <exclude>tests/phpunit/tests/image/editorGd.php</exclude>
     21            <exclude>tests/phpunit/tests/image/editorImagick.php</exclude>
     22            <!-- Path relative to the checkout root, for PHPUnit 3.6.x -->
     23            <exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude>
     24            <!-- Same path relative to the configuration file, for PHPUnit 4.0.0+ -->
     25            <exclude>tests/rest-api/rest-autosaves-controller.php</exclude>
     26        </testsuite>
     27        <!-- Sets the DOING_AUTOSAVE constant, so needs to be run last -->
     28        <testsuite name="restapi-autosave">
     29            <!-- Path relative to the checkout root, for PHPUnit 3.6.x -->
     30            <file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file>
     31            <!-- Same path relative to the configuration file, for PHPUnit 4.0.0+ -->
     32            <file>tests/rest-api/rest-autosaves-controller.php</file>
     33        </testsuite>
     34    </testsuites>
     35    <groups>
     36        <exclude>
     37            <group>ajax</group>
     38            <group>ms-files</group>
     39            <group>ms-excluded</group>
     40            <group>external-http</group>
     41            <group>oembed-headers</group>
     42        </exclude>
     43    </groups>
     44    <php>
     45        <const name="WP_RUN_CORE_TESTS" value="1" />
     46    </php>
     47    <listeners>
     48        <listener class="SpeedTrapListener" file="tests/phpunit/includes/listener-loader.php">
     49            <arguments>
     50                <array>
     51                    <element key="slowThreshold">
     52                        <integer>150</integer>
     53                    </element>
     54                </array>
     55            </arguments>
     56        </listener>
     57    </listeners>
    5858</phpunit>
Note: See TracChangeset for help on using the changeset viewer.