File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
src/test/php/util/data/unittest Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 88 - 5.6
99 - hhvm
1010
11- matrix :
12- allow_failures :
13- - php : hhvm
14-
1511before_script :
1612 - wget 'https://github.com/xp-framework/xp-runners/releases/download/v5.3.1/setup' -O - | php
1713 - composer install --prefer-dist
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ Data sequences change log
33
44## ?.?.? / ????-??-??
55
6+ * Fixed issue #22 : tests not running on HHVM - @thekid
7+
68## 2.2.0 / 2015-05-30
79
810* Made Optional's constructor public and allow ` new Optional(null) ` to
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Data sequences
55[ ![ XP Framework Module] ( https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png )] ( https://github.com/xp-framework/core )
66[ ![ BSD Licence] ( https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png )] ( https://github.com/xp-framework/core/blob/master/LICENCE.md )
77[ ![ Required PHP 5.4+] ( https://raw.githubusercontent.com/xp-framework/web/master/static/php-5_4plus.png )] ( http://php.net/ )
8+ [ ![ Required HHVM 3.4+] ( https://raw.githubusercontent.com/xp-framework/web/master/static/hhvm-3_4plus.png )] ( http://hhvm.com/ )
89[ ![ Latest Stable Version] ( https://poser.pugx.org/xp-forge/sequence/version.png )] ( https://packagist.org/packages/xp-forge/sequence )
910
1011This API allows working with data sequences of different kinds in a functional style, e.g. map/reduce.
Original file line number Diff line number Diff line change @@ -79,12 +79,12 @@ public static function streamedArrays() {
7979 [
8080 [newinstance ('util.XPIterator ' , [], '{
8181 protected $numbers= [1, 2, 3];
82- public function hasNext() { return $this->numbers; }
82+ public function hasNext() { return !empty( $this->numbers) ; }
8383 public function next() { return array_shift($this->numbers); }
8484 } ' ), 'xp-iterator ' ],
8585 [Sequence::of (newinstance ('util.XPIterator ' , [], '{
8686 protected $numbers= [1, 2, 3];
87- public function hasNext() { return $this->numbers; }
87+ public function hasNext() { return !empty( $this->numbers) ; }
8888 public function next() { return array_shift($this->numbers); }
8989 } ' )), 'self-of-xp-iterator ' ]
9090 ]
You can’t perform that action at this time.
0 commit comments