@@ -24,20 +24,20 @@ public function testShouldFailIfKitNameIsInvalid(): void
2424 $ this ->expectException (\InvalidArgumentException::class);
2525 $ this ->expectExceptionMessage ('Invalid kit name "-foobar". ' );
2626
27- new Kit (__DIR__ , '-foobar ' , 'https://example.com ' , [], 'MIT ' );
27+ new Kit (__DIR__ , '-foobar ' , 'https://example.com ' , 'MIT ' );
2828 }
2929
3030 public function testShouldFailIfKitPathIsNotAbsolute (): void
3131 {
3232 $ this ->expectException (\InvalidArgumentException::class);
3333 $ this ->expectExceptionMessage (\sprintf ('Kit path "./%s" is not absolute. ' , __DIR__ ));
3434
35- new Kit (\sprintf ('./%s ' , __DIR__ ), 'foo ' , 'https://example.com ' , [], 'MIT ' );
35+ new Kit (\sprintf ('./%s ' , __DIR__ ), 'foo ' , 'https://example.com ' , 'MIT ' );
3636 }
3737
3838 public function testCanAddComponentsToTheKit (): void
3939 {
40- $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , [], 'MIT ' );
40+ $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , 'MIT ' );
4141 $ kit ->addComponent (new Component ('Table ' , [new File (FileType::Twig, 'Table.html.twig ' , 'Table.html.twig ' )], null ));
4242 $ kit ->addComponent (new Component ('Table:Row ' , [new File (FileType::Twig, 'Table/Row.html.twig ' , 'Table/Row.html.twig ' )], null ));
4343
@@ -49,14 +49,14 @@ public function testShouldFailIfComponentIsAlreadyRegisteredInTheKit(): void
4949 $ this ->expectException (\InvalidArgumentException::class);
5050 $ this ->expectExceptionMessage ('Component "Table" is already registered in the kit. ' );
5151
52- $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , [], 'MIT ' );
52+ $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , 'MIT ' );
5353 $ kit ->addComponent (new Component ('Table ' , [new File (FileType::Twig, 'Table.html.twig ' , 'Table.html.twig ' )], null ));
5454 $ kit ->addComponent (new Component ('Table ' , [new File (FileType::Twig, 'Table.html.twig ' , 'Table.html.twig ' )], null ));
5555 }
5656
5757 public function testCanGetComponentByName (): void
5858 {
59- $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , [], 'MIT ' );
59+ $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , 'MIT ' );
6060 $ kit ->addComponent (new Component ('Table ' , [new File (FileType::Twig, 'Table.html.twig ' , 'Table.html.twig ' )], null ));
6161 $ kit ->addComponent (new Component ('Table:Row ' , [new File (FileType::Twig, 'Table/Row.html.twig ' , 'Table/Row.html.twig ' )], null ));
6262
@@ -66,7 +66,7 @@ public function testCanGetComponentByName(): void
6666
6767 public function testShouldReturnNullIfComponentIsNotFound (): void
6868 {
69- $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , [], 'MIT ' );
69+ $ kit = new Kit (__DIR__ , 'foo ' , 'https://example.com ' , 'MIT ' );
7070
7171 $ this ->assertNull ($ kit ->getComponent ('Table:Cell ' ));
7272 }
0 commit comments