Skip to content

Commit f1b9231

Browse files
committed
Change trait declaration order
1 parent bea54b5 commit f1b9231

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

lib/PHPUnit/TestCase.php

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
<?php
22

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-
193
namespace DMS\PHPUnitExtensions\ArraySubset{
204
if (!trait_exists(ArraySubsetAsserts::class)) {
215
trait ArraySubsetAsserts
@@ -31,3 +15,16 @@ trait ProphecyTrait
3115
}
3216
}
3317
}
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+
}

0 commit comments

Comments
 (0)