Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class AnnotatableTest extends SapphireTest |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var Annotatable |
||
16 | */ |
||
17 | protected $extension; |
||
18 | |||
19 | public function testOutput() |
||
20 | { |
||
21 | $this->extension->displayMessage('Hello world'); |
||
22 | $this->expectOutputString("\nHello world\n\n"); |
||
23 | } |
||
24 | |||
25 | public function testSetUp() |
||
26 | { |
||
27 | $this->extension->setUp(); |
||
28 | $this->assertInstanceOf(DataObjectAnnotator::class, $this->extension->getAnnotator()); |
||
29 | $this->assertInstanceOf(AnnotatePermissionChecker::class, $this->extension->getPermissionChecker()); |
||
30 | } |
||
31 | |||
32 | protected function setUp() |
||
36 | } |
||
37 | } |
||
38 |