1 | <?php |
||
5 | class tests extends \PHPUnit\Framework\TestCase |
||
|
|||
6 | { |
||
7 | use ErrorHandler; |
||
8 | |||
9 | public function provideUserErrors() |
||
18 | |||
19 | public function testAssertErrorHandler() |
||
25 | |||
26 | public function testAssertError() |
||
33 | |||
34 | public function testPHPGeneratedNoticeIsCaptured() |
||
41 | |||
42 | public function testPHPGeneratedRecoverableErrorIsCaptured() |
||
51 | |||
52 | public function testPHPGeneratedWarningIsCaptured() |
||
60 | |||
61 | /** |
||
62 | * @dataProvider provideUserErrors |
||
63 | * |
||
64 | * @param string $message |
||
65 | * @param int $errorType |
||
66 | */ |
||
67 | public function testUserErrorsAreCaptured($message, $errorType) |
||
73 | |||
74 | protected function setUp() |
||
79 | } |
||
80 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.