Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testValidateKey() |
||
27 | { |
||
28 | $this |
||
29 | ->given($this->newTestedInstance(new DefaultSerializer())) |
||
30 | ->then() |
||
31 | ->boolean($this->invoke($this->testedInstance)->validateKey(''))->isTrue() |
||
32 | ->exception( |
||
33 | function () { |
||
34 | $this->invoke($this->testedInstance)->validateKey(new \stdClass()); |
||
35 | } |
||
36 | )->isInstanceOf(InvalidKeyException::class) |
||
37 | ; |
||
38 | } |
||
39 | } |
||
40 |