1 | <?php |
||
12 | final class JsonSerializerTest extends \PHPUnit\Framework\TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @test |
||
16 | * @covers ::unserialize |
||
17 | * |
||
18 | * @return void |
||
19 | */ |
||
20 | public function unserialize() |
||
25 | |||
26 | /** |
||
27 | * @test |
||
28 | * @covers ::unserialize |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public function unserializeToObject() |
||
40 | |||
41 | /** |
||
42 | * @test |
||
43 | * @covers ::unserialize |
||
44 | * @expectedException \Psr\SimpleCache\InvalidArgumentException |
||
45 | * @expectedExceptionMessage Syntax error |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | public function unserializeFailure() |
||
55 | |||
56 | /** |
||
57 | * @test |
||
58 | * @covers ::serialize |
||
59 | * |
||
60 | * @return void |
||
61 | */ |
||
62 | public function serialize() |
||
73 | |||
74 | /** |
||
75 | * @test |
||
76 | * @covers ::serialize |
||
77 | * @expectedException \Psr\SimpleCache\InvalidArgumentException |
||
78 | * @expectedExceptionMessage Inf and NaN cannot be JSON encoded |
||
79 | * |
||
80 | * @return void |
||
81 | */ |
||
82 | public function serializeFailure() |
||
87 | } |
||
88 |