Skip to content

Commit dfc1867

Browse files
author
designcise
committed
test: updated test name + types
1 parent dab6932 commit dfc1867

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/DataTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ public function dataProvider(): array
8282
*
8383
* @param array $sharedVars
8484
* @param array $tplSpecificVars
85-
* @param string|array|null $template
85+
* @param array|string|null $template
8686
*/
8787
public function testAddAndGet(
8888
array $sharedVars,
8989
array $tplSpecificVars,
90-
$template,
90+
array|string|null $template,
9191
): void {
9292
$this->data->add($sharedVars);
9393
$this->data->add($tplSpecificVars, $template);

test/RendererTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ public function dataProvider(): array
135135
*
136136
* @param array $sharedVars
137137
* @param array $tplSpecificVars
138-
* @param string|array|null $template
138+
* @param array|string|null $template
139139
*/
140140
public function testAddAndGetData(
141141
array $sharedVars,
142142
array $tplSpecificVars,
143-
$template,
143+
array|string|null $template,
144144
): void {
145145
$this->renderer->withData($sharedVars);
146146
$this->renderer->withData($tplSpecificVars, $template);

test/TemplateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function invalidTemplateNameProvider(): array
4646
*
4747
* @param string $name
4848
*/
49-
public function testcreateTemplateWithInvalidNameShouldThrowException(string $name): void
49+
public function testCreateTemplateWithInvalidNameShouldThrowException(string $name): void
5050
{
5151
$this->expectException(InvalidArgumentException::class);
5252
new Template($name, new Renderer([]));

0 commit comments

Comments
 (0)