File tree Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Expand file tree Collapse file tree 1 file changed +13
-16
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Phpactor \TestUtils \PHPUnit {
4
-
5
- use DMS \PHPUnitExtensions \ArraySubset \ArraySubsetAsserts ;
6
- use PHPUnit \Framework \TestCase as PhpUnitTestCase ;
7
- use Prophecy \PhpUnit \ProphecyTrait ;
8
-
9
- class TestCase extends PhpUnitTestCase
10
- {
11
- use ArraySubsetAsserts;
12
- use ProphecyTrait;
13
- }
14
- }
15
-
16
- // add stubs for PHPUnit < 8
17
- // when all packages are using PHPUnit 9 these can be removed
18
-
19
3
namespace DMS \PHPUnitExtensions \ArraySubset {
20
4
if (!trait_exists (ArraySubsetAsserts::class)) {
21
5
trait ArraySubsetAsserts
@@ -31,3 +15,16 @@ trait ProphecyTrait
31
15
}
32
16
}
33
17
}
18
+
19
+ namespace Phpactor \TestUtils \PHPUnit {
20
+
21
+ use DMS \PHPUnitExtensions \ArraySubset \ArraySubsetAsserts ;
22
+ use PHPUnit \Framework \TestCase as PhpUnitTestCase ;
23
+ use Prophecy \PhpUnit \ProphecyTrait ;
24
+
25
+ class TestCase extends PhpUnitTestCase
26
+ {
27
+ use ArraySubsetAsserts;
28
+ use ProphecyTrait;
29
+ }
30
+ }
You can’t perform that action at this time.
0 commit comments