1 | <?php |
||
5 | class tests extends \PHPUnit\Framework\TestCase |
||
|
|||
6 | { |
||
7 | use ErrorHandler; |
||
8 | |||
9 | public function provideUserErrors() |
||
18 | |||
19 | public function testAssertError() |
||
26 | |||
27 | public function testPHPGeneratedNoticeIsCaptured() |
||
34 | |||
35 | public function testPHPGeneratedRecoverableErrorIsCaptured() |
||
44 | |||
45 | public function testPHPGeneratedWarningIsCaptured() |
||
53 | |||
54 | /** |
||
55 | * @dataProvider provideUserErrors |
||
56 | * |
||
57 | * @param string $message |
||
58 | * @param int $errorType |
||
59 | */ |
||
60 | public function testUserErrorsAreCaptured($message, $errorType) |
||
66 | |||
67 | public function testNoErrorsAreCapturedWhenNoErrorsAreGenerated() |
||
71 | } |
||
72 |
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.