com php-src: remove all references: tests/run-tests.php
| From: | Bob Weinand | Date: | Fri, 13 Jun 2014 06:35:11 +0000 |
| Subject: | com php-src: remove all references: tests/run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78876@lists.php.net to get a copy of this message | ||
Commit: ab353c0a555313765dc43fd85771e6c53485bd35
Author: krakjoe <joe.watkins@live.co.uk> Fri, 13 Jun 2014 07:35:11 +0100
Parents: d337fb0b62cd8abbe74931d9bc22d4ae50509719
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ab353c0a555313765dc43fd85771e6c53485bd35
Log:
remove all references
Changed paths:
M tests/run-tests.php
Diff:
diff --git a/tests/run-tests.php b/tests/run-tests.php
index 4ee0e1c..1cc31d8 100644
--- a/tests/run-tests.php
+++ b/tests/run-tests.php
@@ -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));