George Peter Banyard
2ee7e2982f
Promote count() warning to TypeError
...
Closes GH-6180
2020-09-21 21:29:15 +01:00
Máté Kocsis
9975986b7e
Improve error messages mentioning parameters instead of arguments
...
Closes GH-5999
2020-09-09 10:47:43 +02:00
Máté Kocsis
b5c7a83dca
Remove unnecessary PHPDoc-alike blocks from tests
...
Closes GH-5759
2020-06-24 13:13:44 +02:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
George Peter Banyard
0719035f9d
Add ValueError for invalid mode in count()
...
Closes GH-5106
2020-01-23 00:14:20 +01:00
Máté Kocsis
0b4778c377
Fix #78880 : Another bunch of spelling errors
2020-01-16 09:46:47 +01:00
Nikita Popov
852485d8ec
Adjust tests for zpp TypeError change
2019-03-11 11:32:20 +01:00
Nikita Popov
aad39879f2
Remove bareword fallback for constants
...
Access to undefined constants will now always result in an Error
exception being thrown.
This required quite a few test changes, because there were many
buggy tests that unintentionally used bareword fallback in combination
with error suppression.
2019-01-31 13:52:06 +01:00
Peter Kokot
d7a3edd45d
Trim trailing whitespace in *.phpt
2018-10-14 19:46:15 +02:00
Gabriel Caruso
ce1d69a1f6
Use int instead of integer in type errors
...
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
2018-02-04 19:08:23 +01:00
Gabriel Caruso
84488d921b
Remove superfluous SKIPIF sections in more tests
2018-02-04 16:57:08 +01:00
Rowan Collins
1b565f1393
Change 'undefined constant' from E_NOTICE to E_WARNING and mention deprecation
...
Implements RFC "Deprecate and Remove Bareword (Unquoted) Strings"
[https://wiki.php.net/rfc/deprecate-bareword-strings ]
2017-03-23 18:52:43 +01:00
Craig Duncan
c1001d22d2
Add expectations for invalid count() warnings
2016-11-17 09:33:04 +00:00
Andrea Faulds
e5eb9530ab
Use "float" and "integer" in typehint and zpp errors
2014-12-21 13:23:02 +00:00
Zoe Slattery
c80613cce2
fixing incorrect --CLEAN-- sections
2009-04-16 10:54:45 +00:00
Jani Taskinen
a541bb8078
- Fix tests
...
- Update README.PARAMETER_PARSING_API
2007-11-02 19:41:12 +00:00
Marcus Boerger
31e1cd13e2
removed unused sections
2002-11-16 17:26:52 +00:00
Sander Roobol
a15c9a31eb
Added tests for pow()'ing with broken exponents and some additional test
...
for count()'ing arrays.
2002-03-21 14:18:30 +00:00
Derick Rethans
aee570302f
- Fix bug introduced in earlier patch
2002-01-09 16:03:36 +00:00
Derick Rethans
ae07e93028
- Added test for recursive counting
2001-12-29 21:05:03 +00:00