@@ -43,38 +43,6 @@ public function testFromTraversableToArray($data, $filter = null, $map = null, $
43
43
$ this ->assertEquals ($ expectedResult , $ iterableObject ->asArray ());
44
44
}
45
45
46
- public function testFilterMutator ()
47
- {
48
- $ filter = function ($ value ) {
49
- return 'bar ' === $ value ;
50
- };
51
- $ iterableObject = iterable (array ('foo ' , 'bar ' ))->withFilter ($ filter );
52
- $ this ->assertEquals (array (1 => 'bar ' ), iterator_to_array ($ iterableObject ));
53
- }
54
-
55
- public function testMapMutator ()
56
- {
57
- $ map = 'strtoupper ' ;
58
- $ iterableObject = iterable (array ('foo ' , 'bar ' ))->withMap ($ map );
59
- $ this ->assertEquals (array ('FOO ' , 'BAR ' ), iterator_to_array ($ iterableObject ));
60
- }
61
-
62
- public function testFilterAndMapMutators ()
63
- {
64
- $ filter = function ($ value ) {
65
- return 'bar ' === $ value ;
66
- };
67
- $ map = 'strtoupper ' ;
68
- $ iterableObject = iterable (array ('foo ' , 'bar ' ))->withMap ($ map )->withFilter ($ filter );
69
- $ this ->assertEquals (array (1 => 'BAR ' ), iterator_to_array ($ iterableObject ));
70
- $ iterableObject = iterable (array ('foo ' , 'bar ' ))->map ($ map )->filter ($ filter );
71
- $ this ->assertEquals (array (1 => 'BAR ' ), iterator_to_array ($ iterableObject ));
72
- $ iterableObject = iterable (array ('foo ' , 'bar ' ))->withFilter ($ filter )->withMap ($ map );
73
- $ this ->assertEquals (array (1 => 'BAR ' ), iterator_to_array ($ iterableObject ));
74
- $ iterableObject = iterable (array ('foo ' , 'bar ' ))->filter ($ filter )->map ($ map );
75
- $ this ->assertEquals (array (1 => 'BAR ' ), iterator_to_array ($ iterableObject ));
76
- }
77
-
78
46
public function dataProvider ()
79
47
{
80
48
$ data = array ('foo ' , 'bar ' );
0 commit comments