@@ 25-31 (lines=7) @@ | ||
22 | /** |
|
23 | * Test annotation with `value` option |
|
24 | */ |
|
25 | public function testValueOption() |
|
26 | { |
|
27 | $annotation = new VichSerializableField(['value' => 'photoFile']); |
|
28 | ||
29 | $this->assertEquals('photoFile', $annotation->getField()); |
|
30 | $this->assertTrue($annotation->isIncludeHost()); |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * Test annotation with `field` option |
|
@@ 36-42 (lines=7) @@ | ||
33 | /** |
|
34 | * Test annotation with `field` option |
|
35 | */ |
|
36 | public function testFieldOption() |
|
37 | { |
|
38 | $annotation = new VichSerializableField(['field' => 'photoFile']); |
|
39 | ||
40 | $this->assertEquals('photoFile', $annotation->getField()); |
|
41 | $this->assertTrue($annotation->isIncludeHost()); |
|
42 | } |
|
43 | ||
44 | /** |
|
45 | * Test annotation with `value` and `includeHost` options |
|
@@ 47-53 (lines=7) @@ | ||
44 | /** |
|
45 | * Test annotation with `value` and `includeHost` options |
|
46 | */ |
|
47 | public function testValueAndIncludeHostOptions() |
|
48 | { |
|
49 | $annotation = new VichSerializableField(['value' => 'photoFile', 'includeHost' => false]); |
|
50 | ||
51 | $this->assertEquals('photoFile', $annotation->getField()); |
|
52 | $this->assertFalse($annotation->isIncludeHost()); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * Test annotation without any option |