File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2+ set -e
23
34RULESET=$1
45TEST_FILE=$2
@@ -13,7 +14,11 @@ if [ ! -f "$TEST_FILE" ]; then
1314 exit 1
1415fi
1516
16- echo " Running test: $TEST_FILE with ruleset: $RULESET "
17+ TEST_NAME=$( sed -n ' 3s/ \* //p' " $TEST_FILE " )
18+
19+ echo " "
20+ echo " Running test: $TEST_NAME with ruleset: $RULESET "
21+ echo " $TEST_FILE "
1722
1823# Use --basepath=. to ensure relative paths in the report.
1924JSON_REPORT=$( phpcs --standard=" ./$RULESET /ruleset.xml" --report=json --basepath=. " $TEST_FILE " 2> /dev/null | sed -n ' /{/,$p' )
Original file line number Diff line number Diff line change 11<?php
22/**
3- * Disallow usage of multiline slash comments .
3+ * Multiline comments should use /* syntax .
44 *
55 * @expectedWarning[Pantheon-WP-Minimum] Pantheon_WP_Minimum.Commenting.DisallowMultilineSlashComment.Found
66 * @expectedError[Pantheon-WP] Pantheon_WP.Commenting.DisallowMultilineSlashComment.Found
Original file line number Diff line number Diff line change 11<?php
22/**
3- * DisallowRenameFunctionTest.inc
3+ * Disallow usage of the rename() function.
44 *
55 * @expectedError[Pantheon-WP-Minimum] Pantheon_WP_Minimum.Files.DisallowRenameFunction.RenameFunctionDisallowed
66 * @expectedError[Pantheon-WP] Pantheon_WP_Minimum.Files.DisallowRenameFunction.RenameFunctionDisallowed
You can’t perform that action at this time.
0 commit comments