1 | <?php |
||
25 | class FileTest extends TestCase |
||
26 | { |
||
27 | const EXAMPLE_HASH = 'a-hash-string'; |
||
28 | const EXAMPLE_PATH = 'a-path-string'; |
||
29 | const EXAMPLE_SOURCE = 'a-source-string'; |
||
30 | |||
31 | /** @var File $fixture */ |
||
32 | protected $fixture; |
||
33 | |||
34 | /** |
||
35 | * @var DocBlock |
||
36 | */ |
||
37 | private $docBlock; |
||
38 | |||
39 | /** |
||
40 | * Creates a new (emoty) fixture object. |
||
41 | */ |
||
42 | protected function setUp() |
||
48 | |||
49 | protected function tearDown() |
||
53 | |||
54 | /** |
||
55 | * @covers ::__construct |
||
56 | * @covers ::getClasses |
||
57 | * @covers ::AddClass |
||
58 | */ |
||
59 | public function testAddAndGetClasses() |
||
68 | |||
69 | /** |
||
70 | * @covers ::__construct |
||
71 | * @covers ::getConstants |
||
72 | * @covers ::addConstant |
||
73 | */ |
||
74 | public function testAddAndGetConstants() |
||
83 | |||
84 | /** |
||
85 | * @covers ::__construct |
||
86 | * @covers ::getFunctions |
||
87 | * @covers ::addFunction |
||
88 | */ |
||
89 | public function testAddAndGetFunctions() |
||
98 | |||
99 | /** |
||
100 | * @covers ::__construct |
||
101 | * @covers ::getInterfaces |
||
102 | * @covers ::addInterface |
||
103 | */ |
||
104 | public function testAddAndGetInterfaces() |
||
113 | |||
114 | /** |
||
115 | * @covers ::__construct |
||
116 | * @covers ::getTraits |
||
117 | * @covers ::addTrait |
||
118 | */ |
||
119 | public function testAddAndGetTraits() |
||
128 | |||
129 | /** |
||
130 | * @covers ::__construct |
||
131 | * @covers ::getDocBlock |
||
132 | */ |
||
133 | public function testGetDocBlock() |
||
137 | |||
138 | /** |
||
139 | * @covers ::__construct |
||
140 | * @covers ::getHash |
||
141 | */ |
||
142 | public function testGetHash() |
||
146 | |||
147 | /** |
||
148 | * @covers ::getPath |
||
149 | */ |
||
150 | public function testSetAndGetPath() |
||
154 | |||
155 | /** |
||
156 | * @covers ::getSource |
||
157 | */ |
||
158 | public function testSetAndGetSource() |
||
162 | |||
163 | /** |
||
164 | * @covers ::addNamespace |
||
165 | * @covers ::getNamespaces |
||
166 | */ |
||
167 | public function testSetAndGetNamespaceAliases() |
||
175 | |||
176 | /** |
||
177 | * @covers ::getIncludes |
||
178 | * @covers ::addInclude |
||
179 | */ |
||
180 | public function testAddAndGetIncludes() |
||
189 | } |
||
190 |