X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FEnvTests.php;h=9bfa80f8dbf3fe74681de6caec9b8482a99e6d45;hb=fac55f2eb2d1a650d22900723b20db607a49a5f8;hp=12de297b656c9923e5d5a6e37bffdb1fec426bb8;hpb=d44a51e500618f1d9abfad4cc6de65cf20226c10;p=civicrm-core.git diff --git a/tests/phpunit/EnvTests.php b/tests/phpunit/EnvTests.php index 12de297b65..9bfa80f8db 100644 --- a/tests/phpunit/EnvTests.php +++ b/tests/phpunit/EnvTests.php @@ -11,6 +11,9 @@ * (eg "MyFirstTest::testFoo"). */ class EnvTests extends \PHPUnit_Framework_TestSuite { + /** + * @return \EnvTests + */ public static function suite() { require_once 'CRM/Core/ClassLoader.php'; CRM_Core_ClassLoader::singleton()->register(); @@ -22,10 +25,12 @@ class EnvTests extends \PHPUnit_Framework_TestSuite { list ($class, $method) = explode('::', $test); $clazz = new \ReflectionClass($class); $suite->addTestMethod($clazz, $clazz->getMethod($method)); - } else { + } + else { $suite->addTestSuite($test); } } return $suite; } + }