This repository was archived by the owner on Dec 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function testFrom()
28
28
/**
29
29
* @expectedException \InvalidArgumentException
30
30
*/
31
- public function testFromNotTraverableSource ()
31
+ public function testFromThrowsInvalidArgumentException ()
32
32
{
33
33
Collection::from (0 );
34
34
}
@@ -164,7 +164,7 @@ public function testParMap($factory)
164
164
* @dataProvider provideCollectionFactory
165
165
* @expectedException \InvalidArgumentException
166
166
*/
167
- public function testParMapWhenWorkersAreZeroThrowException ($ factory )
167
+ public function testParMapThrowsInvalidArgumentException ($ factory )
168
168
{
169
169
$ factory ([])->parMap (function ($ x ) { }, 0 );
170
170
}
Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ class ArrayCollectionTest extends AbstractCollectionTest
10
10
/**
11
11
* @expectedException \OverflowException
12
12
*/
13
- public function testRepeatOfInfiniteStream ()
13
+ public function testRepeatThrowsOverflowException ()
14
14
{
15
15
Collection::repeat ('foo ' );
16
16
}
17
17
18
18
/**
19
19
* @expectedException \OverflowException
20
20
*/
21
- public function testIterate ()
21
+ public function testIterateThrowsOverflowException ()
22
22
{
23
23
Collection::iterate (2 , function ($ x ) { return $ x * $ x ; });
24
24
}
@@ -27,7 +27,7 @@ public function testIterate()
27
27
* @dataProvider provideCollectionFactory
28
28
* @expectedException \OverflowException
29
29
*/
30
- public function testCycleOfInfiniteStream ($ factory )
30
+ public function testCycleThrowsOverflowException ($ factory )
31
31
{
32
32
$ factory ([1 , 2 ])->cycle ();
33
33
}
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public function provideParse()
46
46
* @dataProvider provideParseInvalidExpr
47
47
* @expectedException \InvalidArgumentException
48
48
*/
49
- public function testParseInvalidExpr ($ expr )
49
+ public function testParseThrowsInvalidArgumentException ($ expr )
50
50
{
51
51
PropertySelectorParser::parse ($ expr );
52
52
}
You can’t perform that action at this time.
0 commit comments