This repository was archived by the owner on Mar 6, 2022. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathIntegrationTestCase.php
More file actions
56 lines (52 loc) · 2.51 KB
/
Copy pathIntegrationTestCase.php
File metadata and controls
56 lines (52 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
namespace Phpactor\Completion\Tests\Integration;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\ClassFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\ConstantFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\EnumCaseFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\FunctionFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\InterfaceFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\MethodFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\ParameterFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\ParametersFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\PropertyFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\TraitFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\TypeFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\TypesFormatter;
use Phpactor\Completion\Bridge\WorseReflection\Formatter\VariableFormatter;
use Phpactor\Completion\Bridge\WorseReflection\SnippetFormatter\FunctionLikeSnippetFormatter;
use Phpactor\Completion\Bridge\WorseReflection\SnippetFormatter\NameSearchResultClassSnippetFormatter;
use Phpactor\Completion\Bridge\WorseReflection\SnippetFormatter\NameSearchResultFunctionSnippetFormatter;
use Phpactor\Completion\Bridge\WorseReflection\SnippetFormatter\ParametersSnippetFormatter;
use Phpactor\Completion\Core\Formatter\ObjectFormatter;
use Phpactor\Completion\Tests\TestCase;
use Phpactor\WorseReflection\Reflector;
class IntegrationTestCase extends TestCase
{
protected function formatter(): ObjectFormatter
{
return new ObjectFormatter([
new TypeFormatter(),
new TypesFormatter(),
new FunctionFormatter(),
new MethodFormatter(),
new ParameterFormatter(),
new ParametersFormatter(),
new PropertyFormatter(),
new VariableFormatter(),
new ClassFormatter(),
new InterfaceFormatter(),
new TraitFormatter(),
new ConstantFormatter(),
new EnumCaseFormatter(),
]);
}
protected function snippetFormatter(Reflector $reflector): ObjectFormatter
{
return new ObjectFormatter([
new ParametersSnippetFormatter(),
new FunctionLikeSnippetFormatter(),
new NameSearchResultClassSnippetFormatter($reflector),
new NameSearchResultFunctionSnippetFormatter($reflector),
]);
}
}