Merge pull request #4185 from samuelsov/CRM-15330
[civicrm-core.git] / tests / phpunit / CiviTest / CiviTestSuite.php
index e893941cac40e44d0fc43fdecb24ce35481b987e..ba0fdc77b804facdc859d68577a6201642ff4e89 100644 (file)
@@ -40,6 +40,8 @@ class CiviTestSuite extends PHPUnit_Framework_TestSuite {
 
   /**
    * Simple name based constructor
+   * @param string $theClass
+   * @param string $name
    */
   public function __construct($theClass = '', $name = '') {
     if (empty($name)) {
@@ -80,7 +82,8 @@ class CiviTestSuite extends PHPUnit_Framework_TestSuite {
   }
 
   /**
-   *
+   * @param $myfile
+   * @return \PHPUnit_Framework_TestSuite
    */
   protected function implSuite($myfile) {
     $name = str_replace('_',
@@ -102,15 +105,16 @@ class CiviTestSuite extends PHPUnit_Framework_TestSuite {
    *  Add all test classes *Test and all test suites *Tests in subdirectories
    *
    * @param PHPUnit_Framework_TestSuite $suite
+   *   Test suite object to add tests to
    * @param $myfile
    * @param SplFileInfo $dirInfo
+   *   object to scan
    *
-   * @internal param $ &object Test suite object to add tests to
-   * @internal param \Directory $object to scan
-   * @return Test suite has been updated
+   * @return void
    */
-  protected function addAllTests(PHPUnit_Framework_TestSuite & $suite,
-                                 $myfile, SplFileInfo $dirInfo
+  protected function addAllTests(
+    PHPUnit_Framework_TestSuite &$suite,
+    $myfile, SplFileInfo $dirInfo
   ) {
     //echo get_class($this)."::addAllTests($myfile,".$dirInfo->getRealPath().")\n";
     if (!$dirInfo->isReadable()
@@ -210,4 +214,5 @@ class CiviTestSuite extends PHPUnit_Framework_TestSuite {
 
     // print_r(array($prefix, 'addTests' => $addTests, 'addAllTests' => $addAllTests, 'addTestSuites' => $addTestSuites));
   }
+
 }