File tree Expand file tree Collapse file tree 4 files changed +6
-16
lines changed Expand file tree Collapse file tree 4 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 18
18
19
19
class ChainLoaderTest extends TestCase
20
20
{
21
- protected $ loader1 ;
22
- protected $ loader2 ;
21
+ protected FilesystemLoader $ loader1 ;
22
+ protected FilesystemLoader $ loader2 ;
23
23
24
24
protected function setUp (): void
25
25
{
Original file line number Diff line number Diff line change 19
19
20
20
class FilesystemLoaderTest extends TestCase
21
21
{
22
- protected static $ fixturesPath ;
22
+ protected static string $ fixturesPath ;
23
23
24
24
public static function setUpBeforeClass (): void
25
25
{
Original file line number Diff line number Diff line change 24
24
25
25
class PhpEngineTest extends TestCase
26
26
{
27
- protected $ loader ;
27
+ protected ProjectTemplateLoader $ loader ;
28
28
29
29
protected function setUp (): void
30
30
{
31
31
$ this ->loader = new ProjectTemplateLoader ();
32
32
}
33
33
34
- protected function tearDown (): void
35
- {
36
- $ this ->loader = null ;
37
- }
38
-
39
34
public function testConstructor ()
40
35
{
41
36
$ engine = new ProjectTemplateEngine (new TemplateNameParser (), $ this ->loader );
@@ -204,7 +199,7 @@ public function getLoader(): LoaderInterface
204
199
205
200
class ProjectTemplateLoader extends Loader
206
201
{
207
- public $ templates = [];
202
+ public array $ templates = [];
208
203
209
204
public function setTemplate ($ name , $ content )
210
205
{
Original file line number Diff line number Diff line change 17
17
18
18
class TemplateNameParserTest extends TestCase
19
19
{
20
- protected $ parser ;
20
+ protected TemplateNameParser $ parser ;
21
21
22
22
protected function setUp (): void
23
23
{
24
24
$ this ->parser = new TemplateNameParser ();
25
25
}
26
26
27
- protected function tearDown (): void
28
- {
29
- $ this ->parser = null ;
30
- }
31
-
32
27
/**
33
28
* @dataProvider getLogicalNameToTemplateProvider
34
29
*/
You can’t perform that action at this time.
0 commit comments