]> granicus.if.org Git - php/commitdiff
remove all references
authorkrakjoe <joe.watkins@live.co.uk>
Fri, 13 Jun 2014 06:35:11 +0000 (07:35 +0100)
committerkrakjoe <joe.watkins@live.co.uk>
Fri, 13 Jun 2014 06:35:11 +0000 (07:35 +0100)
tests/run-tests.php

index 4ee0e1c59bbbe538cdd702e115175cd2a1f3c18b..1cc31d815e5b33972b45123f9eb3fa775d91780d 100644 (file)
@@ -135,8 +135,8 @@ namespace phpdbg\testing {
                * @param array basic configuration 
                * @param array command line
                */
-               public function __construct(TestsConfiguration &$config) {
-                       $this->config = &$config;
+               public function __construct(TestsConfiguration $config) {
+                       $this->config = $config;
                        
                        if ($this->config->hasFlag('help') ||
                                $this->config->hasFlag('h')) {
@@ -153,7 +153,7 @@ namespace phpdbg\testing {
                        $paths = array();
                        $where = ($in != null) ? array($in) : $this->config['path'];
                        
-                       foreach ($where as &$path) {
+                       foreach ($where as $path) {
                                if ($path) {
                                        if (is_dir($path)) {
                                                $paths[] = $path;
@@ -357,7 +357,7 @@ namespace phpdbg\testing {
                * @param array configuration
                * @param string file
                */
-               public function __construct(TestsConfiguration &$config, &$file) {
+               public function __construct(TestsConfiguration $config, $file) {
                        if (($handle = fopen($file, 'r'))) {
                                while (($line = fgets($handle))) {
                                        $trim = trim($line);
@@ -420,8 +420,8 @@ namespace phpdbg\testing {
                                }
                                fclose($handle);
                                
-                               $this->config = &$config;
-                               $this->file = &$file;
+                               $this->config = $config;
+                               $this->file = $file;
                        }
                }
                
@@ -528,7 +528,7 @@ namespace phpdbg\testing {
                * Write log to disk if configuration allows it
                *
                */
-               protected function writeLog(&$result = null) {
+               protected function writeLog($result = null) {
                        $log = sprintf(
                                '%s/%s.log',
                                dirname($this->file), basename($this->file));