Re: cvs: php-src /ext/standard/tests/array array_splice_basic.phpt array_splice_errors.phpt array_splice_variation1.phpt array_splice_variation2.phpt
array_splice_variation3.phpt array_splice_variation4.phpt
| From: | Marcus Boerger | Date: | Fri, 26 Oct 2007 13:58:53 +0000 |
| Subject: | Re: cvs: php-src /ext/standard/tests/array array_splice_basic.phpt array_splice_errors.phpt array_splice_variation1.phpt array_splice_variation2.phpt array_splice_variation3.phpt array_splice_variation4.phpt |
||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-46787@lists.php.net to get a copy of this message | ||
Hello Robert,
Friday, October 26, 2007, 1:06:31 PM, you wrote:
>
> http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/array/array_splice_variation1.phpt?view=markup&rev=1.1
> Index: php-src/ext/standard/tests/array/array_splice_variation1.phpt
> +++ php-src/ext/standard/tests/array/array_splice_variation1.phpt
> --TEST--
> Test array_splice() function : usage variations - references
Do not add a blank line in --TEST--. That block must have exactly one line.
> --INI--
Do not provide empty blocls like this --INI-- one.
> --FILE--
> <?php
> /*
> * proto array array_splice(array input, int offset [, int length [, array replacement]])
> * Function is implemented in ext/standard/array.c
> */
> $input_array=array (array(1,2));
> $input_array[]=&$input_array[0];
> var_dump (array_splice ($input_array[0],1,1));
> var_dump ($input_array);
Our normal coding style has no space between function and opening brace. But
we do have spaces after commas and between operators. Sharing that style
makes the code much more readable to all people that deal with tests.
Best regards,
Marcus