1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/spl/tests/bug68479.phpt
T
Nikita Popov 68195bd481 Update ext/spl parameter names
Closes GH-6284.
2020-10-07 12:26:46 +02:00

34 lines
592 B
PHP

--TEST--
Bug #68479 (Escape parameter missing from SplFileObject::fputcsv)
--FILE--
<?php
$method = new ReflectionMethod('SplFileObject', 'fputcsv');
$params = $method->getParameters();
var_dump($params);
?>
--EXPECT--
array(4) {
[0]=>
object(ReflectionParameter)#2 (1) {
["name"]=>
string(6) "fields"
}
[1]=>
object(ReflectionParameter)#3 (1) {
["name"]=>
string(9) "separator"
}
[2]=>
object(ReflectionParameter)#4 (1) {
["name"]=>
string(9) "enclosure"
}
[3]=>
object(ReflectionParameter)#5 (1) {
["name"]=>
string(6) "escape"
}
}