Commit Graph

285 Commits

Author SHA1 Message Date
Marcus Boerger
54917a290b - MFH (Ilia's changes) 2007-01-09 18:38:38 +00:00
Marcus Boerger
14a81a2974 - Add unicode expectations 2006-12-20 22:08:51 +00:00
Marcus Boerger
8fb4a771bc - Fix test name 2006-12-20 22:08:35 +00:00
Marcus Boerger
a0733cc2fa - More tests
- Test naming
2006-12-18 23:01:29 +00:00
Marcus Boerger
5a04fb4815 - Support members in SplObjectStorage serialization / shorter serialization 2006-12-18 22:32:10 +00:00
Marcus Boerger
e02a15a625 - Make this work in unicode mode
# Well of course i should have set the return type to ascii here :-)
2006-12-17 23:23:33 +00:00
Marcus Boerger
1b11ae1e74 - Implement feature request #39836i (SplObjectStorage empty after
unserialize)
# Unicode mode currently does not work...looks like funny changes in the
# unserializer.
2006-12-16 13:55:14 +00:00
Dmitry Stogov
f37ad2e146 Fixed bug #39775 ("Indirect modification ..." message is not shown) 2006-12-08 16:23:04 +00:00
Marcus Boerger
91ac043e7e - Add new test 2006-11-20 19:55:54 +00:00
Hannes Magnusson
d98dfdb119 SplFileObject::getFilename() should not overwrite SplFileInfo::getFilename()
(Fixes bug where SplFileObject::getFilename() returns relative/path/to/file)
2006-11-12 17:08:45 +00:00
Hannes Magnusson
d8895dd81d Fix segfault on $splinfo->openFile()->getPath()
Improve test
2006-11-06 15:20:23 +00:00
Marcus Boerger
6a73cbe914 - Fixed Bug #39313 spl_autoload triggers Fatal error 2006-10-31 23:18:00 +00:00
Sara Golemon
5f19062164 Update test to reflect fix in spl_array.c r-1.114 2006-10-19 22:30:55 +00:00
Antony Dovgal
074615035f fix spl tests 2006-09-19 12:01:18 +00:00
Marcus Boerger
f9e0395529 - Update tests 2006-07-24 23:34:35 +00:00
Marcus Boerger
ebbc559af5 - Update tests 2006-07-21 20:11:24 +00:00
Marcus Boerger
8e3af0a026 - Change order of ctor args
# Do it before the child falls in the brunnel - aka prior to first release.
2006-07-20 22:35:44 +00:00
Marcus Boerger
bec72dba2a - Update RegexIterator 2006-07-20 21:21:20 +00:00
Marcus Boerger
754a741248 - Upgrade RegexIterator capabilities, see docu 2006-07-16 20:52:20 +00:00
Marcus Boerger
78f9ab3454 - This test fails right now and requires a zend API change to fix 2006-07-16 19:50:43 +00:00
Marcus Boerger
4aa20e0781 - Correct test name 2006-07-16 17:33:46 +00:00
Marcus Boerger
395d4ae5e3 - Fix issue with SplFileObject and directories 2006-07-15 13:01:44 +00:00
Marcus Boerger
359dace679 - Add spl_object_hash() 2006-07-09 10:22:03 +00:00
Marcus Boerger
634fd5e58d - Add new test 2006-07-08 11:43:07 +00:00
Hannes Magnusson
e18bb1ce3d Fix/add SKIPIF 2006-06-27 00:09:23 +00:00
Sara Golemon
a8ca40564c Minor fixes (bjori) 2006-05-30 19:05:21 +00:00
Marcus Boerger
f876597452 - Fix handling of third parameter to iterator_apply()
- Add test
2006-05-26 01:40:57 +00:00
Antony Dovgal
a2f0632198 fix test 2006-05-24 23:05:30 +00:00
Marcus Boerger
c7bf318305 - Make code exception safe
- Make RecursiveRegexIterator::getChildren pass regex to inner ctor
- Fix CachingIterator::__toString() in TOSTRING_USE_KEY mode
- Add CachingIterator::getCache()
- Add tests
2006-05-21 17:27:12 +00:00
Marcus Boerger
9264ec9b63 - There is a problem in the string / unicode comparison here which we
do not want to test here, so simply drop the part which is irrelevant
  to the actual test
2006-05-21 12:48:42 +00:00
Marcus Boerger
97e798257a - Remove duplicate error message and add new test 2006-05-21 12:42:00 +00:00
Marcus Boerger
0a0d7b046d - Split up the test in different problem categories 2006-05-20 20:38:28 +00:00
Marcus Boerger
9b314a8406 - Update test 2006-05-20 19:01:22 +00:00
Marcus Boerger
05de29995f - Provide a generic c-level iterator apply function
- Base iterator_to_array() and iterator_count() on it
- Add a testcase
# Somehow there is an issue with exceptions in __destruct() here
2006-05-20 13:23:00 +00:00
Marcus Boerger
4c75c6bf29 - Add new test 2006-05-18 22:51:23 +00:00
Marcus Boerger
fae99963dc - Add new test 2006-05-18 22:41:14 +00:00
Marcus Boerger
fbb48b6f26 - Add new test 2006-05-18 21:56:57 +00:00
Marcus Boerger
4439e2c530 - Fixed CachingIterator issues with string conversion/__toString()
Partly by adding new mode TOSTRING_USE_INNER
2006-05-18 21:41:37 +00:00
Marcus Boerger
ac0a0664ce - Fix test in unicode mode 2006-05-18 21:40:30 +00:00
Marcus Boerger
59bf03c6a8 - Fixed Bug #37457 (Crash when an exception is thrown in accept() method of FilterIterator) 2006-05-16 08:19:56 +00:00
Andrei Zmievski
a331a4d5f1 MFB 2006-05-10 16:51:18 +00:00
Marcus Boerger
091360caa1 - Fix issue related to #36941 (when referencing itself) 2006-04-03 19:52:02 +00:00
Marcus Boerger
8e97252506 - Behavior fix for #36941 2006-04-02 15:04:04 +00:00
Marcus Boerger
ac099ca676 - Bugfix #36941 (ArrayIterator does not clone itself) 2006-04-01 22:39:42 +00:00
Antony Dovgal
1160f87d1d MF51: fix segfault when assigning value by ref and add test 2006-04-01 19:14:01 +00:00
Dmitry Stogov
daca456e1a Fixed test 2006-03-27 13:53:19 +00:00
Marcus Boerger
3865420180 - My eyes hurt 2006-03-23 21:26:50 +00:00
Antony Dovgal
24efa95ab0 add missing skipif sections 2006-03-23 15:05:02 +00:00
Antony Dovgal
b45ea555bc fix typos 2006-03-23 14:55:48 +00:00
Marcus Boerger
d512b99ef3 - Make spl_autoload_unregister() accept any callable like spl_autoload_register() 2006-03-23 12:55:58 +00:00
Marcus Boerger
bf72bc827c - Add new test 2006-03-23 12:20:35 +00:00
Marcus Boerger
59da8ffea1 - Add new test 2006-03-23 11:57:15 +00:00
Marcus Boerger
6b923244b0 - MF51 Add missing bug title and synch with other tests 2006-03-23 11:49:53 +00:00
Antony Dovgal
c2e7761de4 fix leak, add test 2006-03-22 23:12:38 +00:00
Marcus Boerger
ff359fab7f - Fix test 2006-03-16 00:40:11 +00:00
Marcus Boerger
dbb83bc10e - One skipif section is enough 2006-03-04 16:40:54 +00:00
Marcus Boerger
3e986adfe3 - Unicode... 2006-03-03 23:51:40 +00:00
Marcus Boerger
e86cc2a41d - Add new test 2006-03-03 23:48:36 +00:00
Marcus Boerger
75c95e09c3 - Add new test 2006-03-03 23:35:06 +00:00
Marcus Boerger
742c59862d - Test addition 2006-03-03 22:58:13 +00:00
Marcus Boerger
b9630ddf52 - Fix issue with LimitIterator 2006-03-03 22:56:27 +00:00
Marcus Boerger
7bb0ca9ce6 - Fix SEGV with AppendIterator when base class constructor was not called
- Generic check to prevent double call to constructors of SPL iterators
2006-03-03 21:35:16 +00:00
Dmitry Stogov
36002f16c3 Fixed test file 2006-02-22 12:22:07 +00:00
Marcus Boerger
9b8b9632cd - Add new test 2006-02-06 01:28:08 +00:00
Marcus Boerger
1ea1975817 - Synch c-level iterator and iterator methods
- Fix iterator checks
# A nice discussion with Andrei made me remember this issue
2006-02-06 00:58:11 +00:00
Antony Dovgal
c4daf2fffa add test for bug #36258 2006-02-02 13:57:04 +00:00
foobar
6102ec3a06 - Remove wrong inline usage (and fix bug #35796) 2005-12-25 16:03:38 +00:00
Antony Dovgal
73db3873cc MFB: merge two skipif entries 2005-12-22 00:20:44 +00:00
Marcus Boerger
8a7a093996 - Add missing skipif 2005-12-21 22:21:54 +00:00
Antony Dovgal
3e2d9c2549 fix spelling 2005-12-18 20:57:06 +00:00
Marcus Boerger
cea4c80b88 - Add new tests 2005-12-16 22:22:14 +00:00
Dmitry Stogov
8010c59c88 Unicode support 2005-12-07 16:52:13 +00:00
Marcus Boerger
15f4a227e0 - Make SimpleXMLIterator implement Countable 2005-10-31 20:29:34 +00:00
Marcus Boerger
82aa412cf8 - Fix unicode expectations 2005-10-30 14:00:45 +00:00
Marcus Boerger
5303f42825 - Use var_dump() and fix test expectations 2005-10-29 21:01:03 +00:00
Marcus Boerger
68f663eaf8 - Provide const RegExIterator::USE_KEY and actually use it in the test 2005-10-11 00:18:32 +00:00
Marcus Boerger
ac92e5988c - Add (Recursive)RegExIterator 2005-10-10 23:58:42 +00:00
Marcus Boerger
070ed30039 - Throw an exception if an illegal string value is being used in ArrayObject::offsetSet() 2005-10-03 17:58:47 +00:00
Dmitry Stogov
1b1b864941 Unicode support 2005-09-26 07:23:49 +00:00
Marcus Boerger
7e1763a115 - Implement RecursiveIteratorIterator::setMaxDepth()/getMaxDepth() 2005-09-25 12:01:31 +00:00
Antony Dovgal
c6e6b44b82 MF5.0: add new test 2005-09-19 18:59:50 +00:00
Dmitry Stogov
f6a20bad6e Unicode support 2005-09-19 07:49:13 +00:00
Marcus Boerger
02038b4ac4 - Rename 'CachingRecursiveIterator' to 'RecursiveCachingIterator' so that
all of those follow the naming scheme 'Recursive<*>Iterator'
2005-09-18 16:51:24 +00:00
Marcus Boerger
445e382454 - Move RecursiveArrayIterator into .c
- Add ability to control iterator class of ArrayObject
- Implement option to make CachingIterator cache all read elements
- Implement ArrayAccess to CachingIterator to access cached elements
- Update docu
- Update tests
2005-09-18 11:34:36 +00:00
Derick Rethans
0f391bb0b3 - Add E_RECOVERABLE.
#- Thought I did this before already actually...
2005-09-15 16:19:48 +00:00
Marcus Boerger
50301ddc98 - Rename file class again by popular demmand: calling it SplFileObject now
# Any other idea about the name? Or should i come up with a renaming plan
# for the upcoming versions? :-)
2005-09-15 14:07:39 +00:00
Marcus Boerger
8aa7f36a3b - Rename Observer to SplObserver
- Rename Subject to SplSubject
- Move SPL constants to class constants
- Update docu
2005-09-15 03:31:37 +00:00
Dmitry Stogov
ab2e9bc9bd Unicode support 2005-08-22 13:32:46 +00:00
Dmitry Stogov
d0944d74f4 Unicode support 2005-08-16 15:09:51 +00:00
Dmitry Stogov
909e0a1c4e Unicode support 2005-08-15 17:29:07 +00:00
Dmitry Stogov
08fe0d1da3 Test engine is improved to support unicode mode 2005-08-15 14:37:55 +00:00
Dmitry Stogov
0bdfac1169 Tests are fixed according to new var_dump()/pront_r() format (to pass in non-unicode mode) 2005-08-15 07:55:41 +00:00
Marcus Boerger
95064517d3 - Support non static class loader methods 2005-08-11 01:19:11 +00:00
Marcus Boerger
20de5cc091 - Implement SplObjectStorage as announced during OSCON
# This class starts naming of new classes in Spl by prefix Spl as dicussed.
# The class reduces object storage complexity from O(n) to O(1) which is
# not possible in user space.
2005-08-10 21:56:01 +00:00
Marcus Boerger
aa53dcddab - Support sttaic class loader methods 2005-08-10 08:31:57 +00:00
Dmitry Stogov
73c8a340cf Fixed test file (.inc.php -> .php) 2005-08-10 06:36:25 +00:00
Marcus Boerger
0b34e041e3 - Before we later run into BC trouble we split flags into two params mode
and flags now before branching for 5.1.
2005-07-28 21:09:02 +00:00
Marcus Boerger
efcfe44299 - Use correct/complete skipif condition 2005-07-20 07:33:19 +00:00
foobar
3996e49272 one might not have simplexml enabled 2005-06-28 10:17:01 +00:00
Marcus Boerger
74a63cc1b2 - Fixed #33136:
- Allow ArrayObject::offsetSet(NULL, $value) as replacement for [] = $value
- Fix memleaks with overloading ArrayObject
2005-06-20 03:02:52 +00:00
Marcus Boerger
6a67d06c26 - Fix handling of ArrayObject/ArrayIterator flags and provide test 2005-06-20 00:19:18 +00:00
Marcus Boerger
cccdec3577 - Update tests after correcting internal order of actions 2005-05-19 15:49:44 +00:00
Marcus Boerger
177ea26dc1 - Make line counting work with FileObject::fgetc()
- Add a test for FileObject::fgetc()
- Update docs
2005-05-03 22:18:19 +00:00
Marcus Boerger
287864a611 - Change FileObject's line counting to be zero based
- Make FileObject implement SeekableIterator
- Add tests
2005-05-03 21:11:26 +00:00
Marcus Boerger
733aa2e949 - Make class_parentS() and class_implements() accepts class names as well 2005-04-06 15:16:45 +00:00
Marcus Boerger
58d45bfe2e - Add new test 2005-04-05 09:23:14 +00:00
Marcus Boerger
041524feee - Fix Bug #32394 offsetUnset() segfaults in a foreach 2005-03-21 20:07:33 +00:00
Marcus Boerger
6735e8c2a7 - Update test 2005-03-19 15:15:32 +00:00
Marcus Boerger
fec4937052 - Add new test 2005-03-19 15:09:11 +00:00
Marcus Boerger
f9de3fd02b - Allow to hook into RecursiveIteratorIterator's child handling
- Better=faster function caching for RecursiveIteratorIterator
- Check for exceptions and fix check for illegal return values
- Add UnexpectedValueException
- Add docu
2005-03-12 23:03:33 +00:00
Marcus Boerger
e4ce3e36ef - Negative seeking is not supported 2005-03-05 11:35:13 +00:00
Marcus Boerger
d9145daa61 - Rename test 14 to 16 (which is a new one) and MFB 14 again 2005-03-03 10:48:02 +00:00
Marcus Boerger
7cca51e97e - Fix bug #32134 2005-03-03 10:35:34 +00:00
Marcus Boerger
a50157121d - Finish work on spl_autoload*() 2005-03-03 00:20:57 +00:00
Marcus Boerger
30ee47c1d8 - Let spl_autoload_extensions() always return what's registered 2005-03-02 20:59:06 +00:00
Marcus Boerger
5cb7104630 - Add new functions 2005-03-02 01:14:41 +00:00
Marcus Boerger
1a35bcfcbc - Add new test 2005-02-12 18:40:19 +00:00
Marcus Boerger
3fb1c65a41 - Initial Observer implementation 2005-02-08 20:42:48 +00:00
Marcus Boerger
a8552cb2f9 - Add missing '?>' 2005-02-07 16:27:41 +00:00
Marcus Boerger
5cabd2f12b - Move tests to proper location now that the tested classes are hardcoded 2005-01-27 00:34:13 +00:00
Marcus Boerger
faba10853f - Unify 2005-01-27 00:26:13 +00:00
Marcus Boerger
f1e34911a9 - Add new test 2005-01-27 00:22:28 +00:00
Marcus Boerger
b570ad759b - Unify 2005-01-24 21:28:56 +00:00
Marcus Boerger
e1737ca88a - Bugfix #31346 2005-01-24 21:27:36 +00:00
Marcus Boerger
36e6841ef5 - Add new test 2005-01-24 20:22:56 +00:00
Marcus Boerger
a59551d771 - Add new tests 2004-11-10 19:22:26 +00:00
Marcus Boerger
4b76d82fe3 - Add new test 2004-11-04 22:07:18 +00:00
Marcus Boerger
3b7e24cab2 - Add RecursiveIteratorIterator::beginChildren(), endChildren() 2004-11-01 22:54:12 +00:00
Marcus Boerger
8e3a8b1e8e - Add interface Countable (PECL #30113) 2004-11-01 10:45:54 +00:00
Marcus Boerger
b9470609ad - Minor fixes
- Implement AppendIterator in C
2004-11-01 00:26:59 +00:00
Marcus Boerger
9626e9859a - Implement EmptyIterator in C 2004-10-31 20:59:39 +00:00
Marcus Boerger
de3a8ea3e1 - Implement InfiniteIterator in C 2004-10-31 19:49:18 +00:00
Marcus Boerger
90012aa3cc - Implement classes IteratorIterator and NoRewindIterator in C 2004-10-31 18:43:00 +00:00
Marcus Boerger
6349f46e38 - Added iterator_to_array() and iterator_count() 2004-10-07 23:08:19 +00:00
Marcus Boerger
35e78f43a1 - Add missing --SKIPIF-- 2004-09-29 20:10:12 +00:00
Marcus Boerger
d748f8ecf2 - Fix tests (atm preg_match() is wrong) 2004-09-29 20:09:52 +00:00
Marcus Boerger
c9d32d9b71 - Update test 2004-09-29 19:36:30 +00:00
Marcus Boerger
2f40d61bed - Fix test 2004-09-29 09:43:33 +00:00
Marcus Boerger
7133858532 - Fix test by removing corrupt --SKIPIF-- 2004-09-29 09:41:18 +00:00
Marcus Boerger
b16ae3b73a add new test 2004-09-09 07:46:19 +00:00
Marcus Boerger
1cd7013517 Add new test for seeking 2004-08-31 20:54:31 +00:00
Marcus Boerger
dc66fb1f10 Fixed bug #28822: ArrayObject::offsetExists() works inverted 2004-06-21 19:15:27 +00:00
Marcus Boerger
74f21310e3 - ArrayObject::append() must not be called when it refers to an object 2004-04-29 22:25:45 +00:00
Marcus Boerger
bf5f758c93 - Remove unused variable
- Respect visibility in count() and add a test for that
2004-04-29 07:22:02 +00:00
Marcus Boerger
4cdc3117c7 - DOS 2 UNIX 2004-04-28 19:58:47 +00:00
Marcus Boerger
c56ca79733 Fix test 2004-04-27 15:48:20 +00:00
Marcus Boerger
5b755c40ea Fix several issues
- bugfix #27063
- bugfix #27929
- bugfix #28099
- bugfix #28125
# The amount of code is needed to solve the return by reference problem.
# dual_it and derived also need their own iterator handlers to be able
# to return by reference.
2004-04-25 11:14:11 +00:00
Marcus Boerger
27aee6b1dd Update error messages in tests 2004-04-13 19:08:54 +00:00
Marcus Boerger
f0c91bac50 New tests (and ordering of tests) 2004-04-13 19:06:39 +00:00
Marcus Boerger
6e3b81e385 Add new test 2004-04-08 22:47:13 +00:00