1 | <?php |
||
11 | final class BasicSerializerTest extends \PHPUnit\Framework\TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @test |
||
15 | * @covers ::unserialize |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | public function unserialize() |
||
27 | |||
28 | /** |
||
29 | * @test |
||
30 | * @covers ::unserialize |
||
31 | * @expectedException \Psr\SimpleCache\InvalidArgumentException |
||
32 | * @expectedExceptionMessage unserialize(): Error at offset 34 of 34 bytes |
||
33 | * |
||
34 | * @return void |
||
35 | */ |
||
36 | public function unserializeInvalidData() |
||
41 | |||
42 | /** |
||
43 | * @test |
||
44 | * @covers ::unserialize |
||
45 | * @expectedException \Psr\SimpleCache\InvalidArgumentException |
||
46 | * @expectedExceptionMessage $data must be a string |
||
47 | * |
||
48 | * @return void |
||
49 | */ |
||
50 | public function unserializeNonStringData() |
||
55 | |||
56 | /** |
||
57 | * @test |
||
58 | * @covers ::serialize |
||
59 | * |
||
60 | * @return void |
||
61 | */ |
||
62 | public function serialize() |
||
70 | |||
71 | /** |
||
72 | * @test |
||
73 | * @covers ::serialize |
||
74 | * @expectedException \Psr\SimpleCache\InvalidArgumentException |
||
75 | * @expectedExceptionMessage Serialization of 'Closure' is not allowed |
||
76 | * |
||
77 | * @return void |
||
78 | */ |
||
79 | public function serializeFilure() |
||
87 | } |
||
88 |