Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.

Commit c2112f3

Browse files
committed
Rename some test methods
1 parent 635d077 commit c2112f3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/AbstractCollectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testFrom()
2828
/**
2929
* @expectedException \InvalidArgumentException
3030
*/
31-
public function testFromNotTraverableSource()
31+
public function testFromThrowsInvalidArgumentException()
3232
{
3333
Collection::from(0);
3434
}
@@ -164,7 +164,7 @@ public function testParMap($factory)
164164
* @dataProvider provideCollectionFactory
165165
* @expectedException \InvalidArgumentException
166166
*/
167-
public function testParMapWhenWorkersAreZeroThrowException($factory)
167+
public function testParMapThrowsInvalidArgumentException($factory)
168168
{
169169
$factory([])->parMap(function($x) { }, 0);
170170
}

tests/ArrayCollectionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ class ArrayCollectionTest extends AbstractCollectionTest
1010
/**
1111
* @expectedException \OverflowException
1212
*/
13-
public function testRepeatOfInfiniteStream()
13+
public function testRepeatThrowsOverflowException()
1414
{
1515
Collection::repeat('foo');
1616
}
1717

1818
/**
1919
* @expectedException \OverflowException
2020
*/
21-
public function testIterate()
21+
public function testIterateThrowsOverflowException()
2222
{
2323
Collection::iterate(2, function($x) { return $x * $x; });
2424
}
@@ -27,7 +27,7 @@ public function testIterate()
2727
* @dataProvider provideCollectionFactory
2828
* @expectedException \OverflowException
2929
*/
30-
public function testCycleOfInfiniteStream($factory)
30+
public function testCycleThrowsOverflowException($factory)
3131
{
3232
$factory([1, 2])->cycle();
3333
}

tests/Selector/PropertySelectorParserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function provideParse()
4646
* @dataProvider provideParseInvalidExpr
4747
* @expectedException \InvalidArgumentException
4848
*/
49-
public function testParseInvalidExpr($expr)
49+
public function testParseThrowsInvalidArgumentException($expr)
5050
{
5151
PropertySelectorParser::parse($expr);
5252
}

0 commit comments

Comments
 (0)