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

Props netweb, desrosj.
See #43218.

git-svn-id: https://develop.svn.wordpress.org/trunk@44705 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-01-28 17:20:06 +00:00
parent e4813189c3
commit ad71116f38
3 changed files with 107 additions and 107 deletions

View File

@ -1,44 +1,44 @@
<phpunit <phpunit
bootstrap="tests/phpunit/includes/bootstrap.php" bootstrap="tests/phpunit/includes/bootstrap.php"
backupGlobals="false" backupGlobals="false"
colors="true" colors="true"
beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutTestsThatDoNotTestAnything="true"
> >
<testsuites> <testsuites>
<!-- Default test suite to run all tests --> <!-- Default test suite to run all tests -->
<testsuite name="default"> <testsuite name="default">
<directory suffix=".php">tests/phpunit/tests</directory> <directory suffix=".php">tests/phpunit/tests</directory>
<file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file> <file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file>
<file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file> <file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file>
<file phpVersion="5.3.0">tests/phpunit/tests/image/editorGd.php</file> <file phpVersion="5.3.0">tests/phpunit/tests/image/editorGd.php</file>
<file phpVersion="5.3.0">tests/phpunit/tests/image/editorImagick.php</file> <file phpVersion="5.3.0">tests/phpunit/tests/image/editorImagick.php</file>
<file phpVersion="5.3.0">tests/phpunit/tests/oembed/headers.php</file> <file phpVersion="5.3.0">tests/phpunit/tests/oembed/headers.php</file>
<exclude>tests/phpunit/tests/actions/closures.php</exclude> <exclude>tests/phpunit/tests/actions/closures.php</exclude>
<exclude>tests/phpunit/tests/image/editor.php</exclude> <exclude>tests/phpunit/tests/image/editor.php</exclude>
<exclude>tests/phpunit/tests/image/editorGd.php</exclude> <exclude>tests/phpunit/tests/image/editorGd.php</exclude>
<exclude>tests/phpunit/tests/image/editorImagick.php</exclude> <exclude>tests/phpunit/tests/image/editorImagick.php</exclude>
<exclude>tests/phpunit/tests/oembed/headers.php</exclude> <exclude>tests/phpunit/tests/oembed/headers.php</exclude>
<exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude> <exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude>
</testsuite> </testsuite>
<!-- Sets the DOING_AUTOSAVE constant, so needs to be run last --> <!-- Sets the DOING_AUTOSAVE constant, so needs to be run last -->
<testsuite name="restapi-autosave"> <testsuite name="restapi-autosave">
<file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file> <file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
<exclude> <exclude>
<group>ajax</group> <group>ajax</group>
<group>ms-files</group> <group>ms-files</group>
<group>ms-required</group> <group>ms-required</group>
<group>external-http</group> <group>external-http</group>
</exclude> </exclude>
</groups> </groups>
<logging> <logging>
<log type="junit" target="tests/phpunit/build/logs/junit.xml" /> <log type="junit" target="tests/phpunit/build/logs/junit.xml" />
</logging> </logging>
<php> <php>
<const name="WP_RUN_CORE_TESTS" value="1" /> <const name="WP_RUN_CORE_TESTS" value="1" />
</php> </php>
<listeners> <listeners>
<listener class="SpeedTrapListener" file="tests/phpunit/includes/listener-loader.php"> <listener class="SpeedTrapListener" file="tests/phpunit/includes/listener-loader.php">
<arguments> <arguments>

View File

@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<project name="WordPress Unit Tests" default="build" basedir="."> <project name="WordPress Unit Tests" default="build" basedir=".">
<target name="clean"> <target name="clean">
<delete dir="build" /> <delete dir="build" />
</target> </target>
<target name="prepare"> <target name="prepare">
<mkdir dir="build/logs" /> <mkdir dir="build/logs" />
<mkdir dir="build/phpunitreport" /> <mkdir dir="build/phpunitreport" />
</target> </target>
<target name="phpunit"> <target name="phpunit">
<exec command="phpunit" passthru="true"></exec> <exec command="phpunit" passthru="true"></exec>
<phpunitreport infile="build/logs/junit.xml" format="frames" todir="build/phpunitreport" usesorttable="true" /> <phpunitreport infile="build/logs/junit.xml" format="frames" todir="build/phpunitreport" usesorttable="true" />
</target> </target>
<target name="build" depends="clean,prepare,phpunit" /> <target name="build" depends="clean,prepare,phpunit" />
</project> </project>

View File

@ -1,58 +1,58 @@
<phpunit <phpunit
bootstrap="includes/bootstrap.php" bootstrap="includes/bootstrap.php"
backupGlobals="false" backupGlobals="false"
colors="true" colors="true"
beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutTestsThatDoNotTestAnything="true"
> >
<php> <php>
<const name="WP_TESTS_MULTISITE" value="1" /> <const name="WP_TESTS_MULTISITE" value="1" />
</php> </php>
<testsuites> <testsuites>
<!-- Default test suite to run all tests --> <!-- Default test suite to run all tests -->
<testsuite name="default"> <testsuite name="default">
<directory suffix=".php">tests</directory> <directory suffix=".php">tests</directory>
<file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file> <file phpVersion="5.3.0">tests/phpunit/tests/actions/closures.php</file>
<file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file> <file phpVersion="5.3.0">tests/phpunit/tests/image/editor.php</file>
<file phpVersion="5.3.0">tests/phpunit/tests/image/editorGd.php</file> <file phpVersion="5.3.0">tests/phpunit/tests/image/editorGd.php</file>
<file phpVersion="5.3.0">tests/phpunit/tests/image/editorImagick.php</file> <file phpVersion="5.3.0">tests/phpunit/tests/image/editorImagick.php</file>
<exclude>tests/phpunit/tests/actions/closures.php</exclude> <exclude>tests/phpunit/tests/actions/closures.php</exclude>
<exclude>tests/phpunit/tests/image/editor.php</exclude> <exclude>tests/phpunit/tests/image/editor.php</exclude>
<exclude>tests/phpunit/tests/image/editorGd.php</exclude> <exclude>tests/phpunit/tests/image/editorGd.php</exclude>
<exclude>tests/phpunit/tests/image/editorImagick.php</exclude> <exclude>tests/phpunit/tests/image/editorImagick.php</exclude>
<!-- Path relative to the checkout root, for PHPUnit 3.6.x --> <!-- Path relative to the checkout root, for PHPUnit 3.6.x -->
<exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude> <exclude>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</exclude>
<!-- Same path relative to the configuration file, for PHPUnit 4.0.0+ --> <!-- Same path relative to the configuration file, for PHPUnit 4.0.0+ -->
<exclude>tests/rest-api/rest-autosaves-controller.php</exclude> <exclude>tests/rest-api/rest-autosaves-controller.php</exclude>
</testsuite> </testsuite>
<!-- Sets the DOING_AUTOSAVE constant, so needs to be run last --> <!-- Sets the DOING_AUTOSAVE constant, so needs to be run last -->
<testsuite name="restapi-autosave"> <testsuite name="restapi-autosave">
<!-- Path relative to the checkout root, for PHPUnit 3.6.x --> <!-- Path relative to the checkout root, for PHPUnit 3.6.x -->
<file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file> <file>tests/phpunit/tests/rest-api/rest-autosaves-controller.php</file>
<!-- Same path relative to the configuration file, for PHPUnit 4.0.0+ --> <!-- Same path relative to the configuration file, for PHPUnit 4.0.0+ -->
<file>tests/rest-api/rest-autosaves-controller.php</file> <file>tests/rest-api/rest-autosaves-controller.php</file>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
<exclude> <exclude>
<group>ajax</group> <group>ajax</group>
<group>ms-files</group> <group>ms-files</group>
<group>ms-excluded</group> <group>ms-excluded</group>
<group>external-http</group> <group>external-http</group>
<group>oembed-headers</group> <group>oembed-headers</group>
</exclude> </exclude>
</groups> </groups>
<php> <php>
<const name="WP_RUN_CORE_TESTS" value="1" /> <const name="WP_RUN_CORE_TESTS" value="1" />
</php> </php>
<listeners> <listeners>
<listener class="SpeedTrapListener" file="tests/phpunit/includes/listener-loader.php"> <listener class="SpeedTrapListener" file="tests/phpunit/includes/listener-loader.php">
<arguments> <arguments>
<array> <array>
<element key="slowThreshold"> <element key="slowThreshold">
<integer>150</integer> <integer>150</integer>
</element> </element>
</array> </array>
</arguments> </arguments>
</listener> </listener>
</listeners> </listeners>
</phpunit> </phpunit>