Skip to content

Commit b3cb411

Browse files
committed
Use PHPUnit naming convention *Test
1 parent b6d6b9d commit b3cb411

8 files changed

+16
-15
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@
1717
>
1818
<testsuites>
1919
<testsuite name="Test Suite">
20-
<file>tests/TestIsIterable.php</file>
21-
<file>tests/TestIterableToArray.php</file>
22-
<file>tests/TestIterableToTraversable.php</file>
23-
<file>tests/TestIterableFilter.php</file>
24-
<file>tests/TestIterableMap.php</file>
25-
<file>tests/TestIterableObject.php</file>
20+
<directory>tests</directory>
2621
</testsuite>
2722
</testsuites>
2823
<filter>

tests/TestIsIterable.php renamed to tests/IsIterableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use PHPUnit\Framework\TestCase;
44

5-
class TestIsIterable extends TestCase
5+
final class IsIterableTest extends TestCase
66
{
77

88
public function testFunctionExists()

tests/TestIterableFilter.php renamed to tests/IterableFilterTest.php

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

3-
class TestIterableFilter extends \PHPUnit\Framework\TestCase
3+
use PHPUnit\Framework\TestCase;
4+
5+
final class IterableFilterTest extends TestCase
46
{
57

68
public function testArrayFilter()
@@ -31,4 +33,4 @@ public function testInvalidIterable()
3133
};
3234
iterable_filter('foo', $filter);
3335
}
34-
}
36+
}

tests/TestIterableMap.php renamed to tests/IterableMapTest.php

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

3-
class TestIterableMap extends \PHPUnit\Framework\TestCase
3+
use PHPUnit\Framework\TestCase;
4+
5+
final class IterableMapTest extends TestCase
46
{
57

68
public function testArrayMap()
@@ -27,4 +29,4 @@ public function testInvalidIterable()
2729
};
2830
iterable_map('foo', $filter);
2931
}
30-
}
32+
}

tests/TestIterableObject.php renamed to tests/IterableObjectTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
class TestIterableObject extends \PHPUnit\Framework\TestCase
3+
use PHPUnit\Framework\TestCase;
4+
5+
final class IterableObjectTest extends TestCase
46
{
57

68
/**

tests/TestIterableReduce.php renamed to tests/IterableReduceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use PHPUnit\Framework\TestCase;
44

5-
final class TestIterableReduce extends TestCase
5+
final class IterableReduceTest extends TestCase
66
{
77
public function testArrayReduce()
88
{

tests/TestIterableToArray.php renamed to tests/IterableToArrayTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use PHPUnit\Framework\TestCase;
44

5-
class TestIterableToArray extends TestCase
5+
final class IterableToArrayTest extends TestCase
66
{
77

88
public function testFunctionExists()

tests/TestIterableToTraversable.php renamed to tests/IterableToTraversableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
use PHPUnit\Framework\TestCase;
44

5-
class TestIterableToTraversable extends TestCase
5+
final class IterableToTraversableTest extends TestCase
66
{
77

88
public function testFunctionExists()

0 commit comments

Comments
 (0)