Skip to content

Commit 3e943ae

Browse files
committed
Rewrite tests to function w/o lang.types
1 parent d698c16 commit 3e943ae

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/test/php/util/data/unittest/AbstractSequenceTest.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php namespace util\data\unittest;
22

33
use lang\Object;
4-
use lang\types\ArrayList;
54
use util\data\Sequence;
65
use util\data\Collector;
76

src/test/php/util/data/unittest/Enumerables.class.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php namespace util\data\unittest;
22

33
use util\XPIterator;
4-
use lang\types\ArrayList;
5-
use lang\types\ArrayMap;
64
use lang\Object;
75
use util\data\Sequence;
86

@@ -60,7 +58,7 @@ public static function validMaps() {
6058
public static function fixedArrays() {
6159
return [
6260
[[1, 2, 3], 'array'],
63-
[new ArrayList(1, 2, 3), 'fixed-iterable'],
61+
[new \ArrayObject([1, 2, 3]), 'fixed-iterable'],
6462
[new \ArrayIterator([1, 2, 3]), 'rewindable-iterator'],
6563
[Sequence::of([1, 2, 3]), 'self-of-fixed-enumerable'],
6664
];
@@ -100,7 +98,7 @@ public function next() { return array_shift($this->numbers); }
10098
public static function fixedMaps() {
10199
return [
102100
[['color' => 'green', 'price' => 12.99], 'map'],
103-
[new ArrayMap(['color' => 'green', 'price' => 12.99]), 'iterable'],
101+
[new \ArrayObject(['color' => 'green', 'price' => 12.99]), 'iterable'],
104102
[new \ArrayIterator(['color' => 'green', 'price' => 12.99]), 'iterator'],
105103
[Sequence::of(['color' => 'green', 'price' => 12.99]), 'self']
106104
];

0 commit comments

Comments
 (0)