Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function testExecuteSetsMarkers() |
||
22 | { |
||
23 | $fixture = new ResolveInlineMarkers(); |
||
24 | |||
25 | $fileDescriptor = new FileDescriptor('abc'); |
||
26 | $fileDescriptor->setSource( |
||
27 | <<<SOURCE |
||
28 | <?php |
||
29 | |||
30 | class Marker |
||
31 | { |
||
32 | //TODO: implement this |
||
33 | } |
||
34 | SOURCE |
||
35 | ); |
||
36 | |||
37 | $projectDescriptor = new ProjectDescriptor('test project'); |
||
38 | $projectDescriptor->getSettings()->setMarkers(['TODO']); |
||
39 | $projectDescriptor->setFiles(new Collection([$fileDescriptor])); |
||
40 | |||
41 | $fixture->execute($projectDescriptor); |
||
42 | |||
43 | self::assertCount(1, $fileDescriptor->getMarkers()); |
||
44 | } |
||
45 | } |
||
46 |