THRIFT-4475: PSR-2 support for lib/php/test
Client: php

This closes #1482
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 9c65eaf..180388a 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -1,10 +1,10 @@
 <?xml version="1.0"?>
-<ruleset name="PHP_CodeSniffer">
-    <description>The coding standard for PHP_CodeSniffer itself.</description>
+<ruleset name="Apache_Thrift">
+    <description>The coding standard for thrift.</description>
 
     <file>lib/php/lib</file>
-
-    <exclude-pattern>*/Standards/*/Tests/*\.(inc|css|js)</exclude-pattern>
+    <file>lib/php/test</file>
+    <exclude-pattern>lib/php/test/packages/*</exclude-pattern>
 
     <arg name="basepath" value="."/>
     <arg name="colors" />
@@ -15,4 +15,11 @@
         <exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
     </rule>
 
+    <rule ref="PSR1.Files.SideEffects">
+        <exclude-pattern>lib/php/test/*</exclude-pattern>
+    </rule>
+    <rule ref="Generic.Files.LineLength">
+        <exclude-pattern>lib/php/test/*</exclude-pattern>
+    </rule>
+
 </ruleset>