Swap implode() argument order in some tests

This commit is contained in:
Nikita Popov 2019-07-12 10:43:32 +02:00
parent 9a274de4f4
commit 2e56e14e39
3 changed files with 17 additions and 17 deletions

View File

@ -6,36 +6,36 @@ class MyIterator extends ArrayIterator {
function __construct() {
$args = func_get_args();
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
}
function rewind() {
$args = func_get_args();
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
return parent::rewind();
}
function valid() {
$args = func_get_args();
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
return parent::valid();
}
function current() {
$args = func_get_args();
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
return parent::current();
}
function next() {
$args = func_get_args();
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
return parent::next();
}
function key() {
$args = func_get_args();
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
return parent::key();
}
}

View File

@ -16,19 +16,19 @@ class UsesMagic extends ArrayObject {
function __get($name) {
$args = func_get_args();
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
}
function __set($name, $value) {
$args = func_get_args();
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
}
function __isset($name) {
$args = func_get_args();
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
}
function __unset($name) {
$args = func_get_args();
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
}
}

View File

@ -13,7 +13,7 @@ ini_set('serialize_precision', -1);
echo ini_get('precision'), PHP_EOL;
echo ini_get('serialize_precision'), PHP_EOL;
echo "OUTPUTS".PHP_EOL;
echo join($v, ' ').PHP_EOL;
echo join(' ', $v).PHP_EOL;
var_dump(serialize($v));
var_export($v);echo PHP_EOL;
@ -24,7 +24,7 @@ ini_set('serialize_precision', 0);
echo ini_get('precision'), PHP_EOL;
echo ini_get('serialize_precision'), PHP_EOL;
echo "OUTPUTS".PHP_EOL;
echo join($v, ' ').PHP_EOL;
echo join(' ', $v).PHP_EOL;
var_dump(serialize($v));
var_export($v);echo PHP_EOL;
@ -34,7 +34,7 @@ ini_set('serialize_precision', 9);
echo ini_get('precision'), PHP_EOL;
echo ini_get('serialize_precision'), PHP_EOL;
echo "OUTPUTS".PHP_EOL;
echo join($v, ' ').PHP_EOL;
echo join(' ', $v).PHP_EOL;
var_dump(serialize($v));
var_export($v);echo PHP_EOL;
@ -44,7 +44,7 @@ ini_set('serialize_precision', 14);
echo ini_get('precision'), PHP_EOL;
echo ini_get('serialize_precision'), PHP_EOL;
echo "OUTPUTS".PHP_EOL;
echo join($v, ' ').PHP_EOL;
echo join(' ', $v).PHP_EOL;
var_dump(serialize($v));
var_export($v);echo PHP_EOL;
@ -54,7 +54,7 @@ ini_set('serialize_precision', 17);
echo ini_get('precision'), PHP_EOL;
echo ini_get('serialize_precision'), PHP_EOL;
echo "OUTPUTS".PHP_EOL;
echo join($v, ' ').PHP_EOL;
echo join(' ', $v).PHP_EOL;
var_dump(serialize($v));
var_export($v);echo PHP_EOL;
@ -64,7 +64,7 @@ ini_set('serialize_precision', 25);
echo ini_get('precision'), PHP_EOL;
echo ini_get('serialize_precision'), PHP_EOL;
echo "OUTPUTS".PHP_EOL;
echo join($v, ' ').PHP_EOL;
echo join(' ', $v).PHP_EOL;
var_dump(serialize($v));
var_export($v);echo PHP_EOL;
@ -74,7 +74,7 @@ ini_set('serialize_precision', 100);
echo ini_get('precision'), PHP_EOL;
echo ini_get('serialize_precision'), PHP_EOL;
echo "OUTPUTS".PHP_EOL;
echo join($v, ' ').PHP_EOL;
echo join(' ', $v).PHP_EOL;
var_dump(serialize($v));
var_export($v);echo PHP_EOL;
--EXPECT--