| 1 | <?php |
||
| 11 | final class MessageValidatorTraitTest extends \PHPUnit\Framework\TestCase |
||
| 12 | { |
||
| 13 | use MessageValidatorTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param mixed $message The message that will validate. |
||
| 17 | * |
||
| 18 | * @test |
||
| 19 | * @covers ::validateMessage |
||
| 20 | * @dataProvider provideValidValidateData |
||
| 21 | * |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | public function validateMessageValid($message) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Provides valid messages for testing. |
||
| 31 | * |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | public function provideValidValidateData() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @test |
||
| 47 | * @covers ::validateMessage |
||
| 48 | * @expectedException \Psr\Log\InvalidArgumentException |
||
| 49 | * |
||
| 50 | * @return void |
||
| 51 | */ |
||
| 52 | public function validateMessageInvalid() |
||
| 56 | } |
||
| 57 |