summaryrefslogtreecommitdiff
path: root/ext/spl/tests/iterator_053.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/iterator_053.phpt')
-rw-r--r--ext/spl/tests/iterator_053.phpt44
1 files changed, 22 insertions, 22 deletions
diff --git a/ext/spl/tests/iterator_053.phpt b/ext/spl/tests/iterator_053.phpt
index 02c18fdd6b..ac8f438a04 100644
--- a/ext/spl/tests/iterator_053.phpt
+++ b/ext/spl/tests/iterator_053.phpt
@@ -5,31 +5,31 @@ SPL: RegexIterator::ALL_MATCHES
class MyRegexIterator extends RegexIterator
{
- public $uk, $re;
+ public $uk, $re;
- function __construct($it, $re, $mode, $flags = 0)
- {
- $this->uk = $flags & self::USE_KEY;
- $this->re = $re;
- parent::__construct($it, $re, $mode, $flags);
- }
+ function __construct($it, $re, $mode, $flags = 0)
+ {
+ $this->uk = $flags & self::USE_KEY;
+ $this->re = $re;
+ parent::__construct($it, $re, $mode, $flags);
+ }
- function show()
- {
- foreach($this as $k => $v)
- {
- var_dump($k);
- var_dump($v);
- }
- }
+ function show()
+ {
+ foreach($this as $k => $v)
+ {
+ var_dump($k);
+ var_dump($v);
+ }
+ }
- function accept()
- {
- @preg_match_all($this->re, (string)($this->uk ? $this->key() : $this->current()), $sub);
- $ret = parent::accept();
- var_dump($sub == $this->current());
- return $ret;
- }
+ function accept()
+ {
+ @preg_match_all($this->re, (string)($this->uk ? $this->key() : $this->current()), $sub);
+ $ret = parent::accept();
+ var_dump($sub == $this->current());
+ return $ret;
+ }
}
$ar = new ArrayIterator(array('1','1,2','1,2,3','',NULL,array(),'FooBar',',',',,'));