mscherer 8 years ago
parent
commit
e1bf56ba4f
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/TestSuite/ToolsTestTrait.php

+ 4 - 3
src/TestSuite/ToolsTestTrait.php

@@ -2,6 +2,8 @@
 
 namespace Tools\TestSuite;
 
+use ReflectionClass;
+
 /**
  * Utility methods for easier testing in CakePHP & PHPUnit
  */
@@ -85,9 +87,8 @@ trait ToolsTestTrait {
 	 *
 	 * @return mixed Method return.
 	 */
-	protected function invokeMethod(&$object, $methodName, array $parameters = [])
-	{
-		$reflection = new \ReflectionClass(get_class($object));
+	protected function invokeMethod(&$object, $methodName, array $parameters = []) {
+		$reflection = new ReflectionClass(get_class($object));
 		$method = $reflection->getMethod($methodName);
 		$method->setAccessible(true);