1 | <?php |
||
23 | class SerializerTest extends TestCase |
||
24 | { |
||
25 | /** |
||
26 | * Call Mockery::close after each test. |
||
27 | */ |
||
28 | public function tearDown() |
||
32 | |||
33 | /** |
||
34 | * @covers ::__construct |
||
35 | * @covers ::getDocComment |
||
36 | * @uses phpDocumentor\Reflection\DocBlock\Description |
||
37 | * @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter |
||
38 | * @uses phpDocumentor\Reflection\DocBlock |
||
39 | * @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag |
||
40 | * @uses phpDocumentor\Reflection\DocBlock\Tags\Generic |
||
41 | */ |
||
42 | public function testReconstructsADocCommentFromADocBlock() |
||
66 | |||
67 | /** |
||
68 | * @covers ::__construct |
||
69 | * @covers ::getDocComment |
||
70 | * @uses phpDocumentor\Reflection\DocBlock\Description |
||
71 | * @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter |
||
72 | * @uses phpDocumentor\Reflection\DocBlock |
||
73 | * @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag |
||
74 | * @uses phpDocumentor\Reflection\DocBlock\Tags\Generic |
||
75 | */ |
||
76 | public function testAddPrefixToDocBlock() |
||
100 | |||
101 | /** |
||
102 | * @covers ::__construct |
||
103 | * @covers ::getDocComment |
||
104 | * @uses phpDocumentor\Reflection\DocBlock\Description |
||
105 | * @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter |
||
106 | * @uses phpDocumentor\Reflection\DocBlock |
||
107 | * @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag |
||
108 | * @uses phpDocumentor\Reflection\DocBlock\Tags\Generic |
||
109 | */ |
||
110 | public function testAddPrefixToDocBlockExceptFirstLine() |
||
134 | |||
135 | /** |
||
136 | * @covers ::__construct |
||
137 | * @covers ::getDocComment |
||
138 | * @uses phpDocumentor\Reflection\DocBlock\Description |
||
139 | * @uses phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter |
||
140 | * @uses phpDocumentor\Reflection\DocBlock |
||
141 | * @uses phpDocumentor\Reflection\DocBlock\Tags\BaseTag |
||
142 | * @uses phpDocumentor\Reflection\DocBlock\Tags\Generic |
||
143 | */ |
||
144 | public function testWordwrapsAroundTheGivenAmountOfCharacters() |
||
174 | |||
175 | /** |
||
176 | * @covers ::__construct |
||
177 | * @expectedException \InvalidArgumentException |
||
178 | */ |
||
179 | public function testInitializationFailsIfIndentIsNotAnInteger() |
||
183 | |||
184 | /** |
||
185 | * @covers ::__construct |
||
186 | * @expectedException \InvalidArgumentException |
||
187 | */ |
||
188 | public function testInitializationFailsIfIndentStringIsNotAString() |
||
192 | |||
193 | /** |
||
194 | * @covers ::__construct |
||
195 | * @expectedException \InvalidArgumentException |
||
196 | */ |
||
197 | public function testInitializationFailsIfIndentFirstLineIsNotABoolean() |
||
201 | |||
202 | /** |
||
203 | * @covers ::__construct |
||
204 | * @expectedException \InvalidArgumentException |
||
205 | */ |
||
206 | public function testInitializationFailsIfLineLengthIsNotNullNorAnInteger() |
||
210 | } |
||
211 |