@@ -24,20 +24,20 @@ public function testShouldFailIfKitNameIsInvalid(): void
24
24
$ this ->expectException (\InvalidArgumentException::class);
25
25
$ this ->expectExceptionMessage ('Invalid kit name "-foobar". ' );
26
26
27
- new Kit (__DIR__ , '-foobar ' , 'https://example.com ' , [], 'MIT ' );
27
+ new Kit (__DIR__ , '-foobar ' , 'https://example.com ' , 'MIT ' );
28
28
}
29
29
30
30
public function testShouldFailIfKitPathIsNotAbsolute (): void
31
31
{
32
32
$ this ->expectException (\InvalidArgumentException::class);
33
33
$ this ->expectExceptionMessage (\sprintf ('Kit path "./%s" is not absolute. ' , __DIR__ ));
34
34
35
- new Kit (\sprintf ('./%s ' , __DIR__ ), 'foo ' , 'https://example.com ' , [], 'MIT ' );
35
+ new Kit (\sprintf ('./%s ' , __DIR__ ), 'foo ' , 'https://example.com ' , 'MIT ' );
36
36
}
37
37
38
38
public function testCanAddComponentsToTheKit (): void
39
39
{
40
- $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , [], 'MIT ' );
40
+ $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , 'MIT ' );
41
41
$ kit ->addComponent (new Component ('Table ' , [new File (FileType::Twig, 'Table.html.twig ' , 'Table.html.twig ' )], null ));
42
42
$ kit ->addComponent (new Component ('Table:Row ' , [new File (FileType::Twig, 'Table/Row.html.twig ' , 'Table/Row.html.twig ' )], null ));
43
43
@@ -49,14 +49,14 @@ public function testShouldFailIfComponentIsAlreadyRegisteredInTheKit(): void
49
49
$ this ->expectException (\InvalidArgumentException::class);
50
50
$ this ->expectExceptionMessage ('Component "Table" is already registered in the kit. ' );
51
51
52
- $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , [], 'MIT ' );
52
+ $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , 'MIT ' );
53
53
$ kit ->addComponent (new Component ('Table ' , [new File (FileType::Twig, 'Table.html.twig ' , 'Table.html.twig ' )], null ));
54
54
$ kit ->addComponent (new Component ('Table ' , [new File (FileType::Twig, 'Table.html.twig ' , 'Table.html.twig ' )], null ));
55
55
}
56
56
57
57
public function testCanGetComponentByName (): void
58
58
{
59
- $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , [], 'MIT ' );
59
+ $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , 'MIT ' );
60
60
$ kit ->addComponent (new Component ('Table ' , [new File (FileType::Twig, 'Table.html.twig ' , 'Table.html.twig ' )], null ));
61
61
$ kit ->addComponent (new Component ('Table:Row ' , [new File (FileType::Twig, 'Table/Row.html.twig ' , 'Table/Row.html.twig ' )], null ));
62
62
@@ -66,7 +66,7 @@ public function testCanGetComponentByName(): void
66
66
67
67
public function testShouldReturnNullIfComponentIsNotFound (): void
68
68
{
69
- $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , [], 'MIT ' );
69
+ $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , 'MIT ' );
70
70
71
71
$ this ->assertNull ($ kit ->getComponent ('Table:Cell ' ));
72
72
}
0 commit comments