Skip to content

Commit

Permalink
Remove redundant test code
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorejb committed Dec 11, 2024
1 parent e42a21b commit 5f8a1e6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/Handlebars/HandlebarsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@ public function simpleTagdataProvider(): array
);
}


/**
* Test helpers (internal helpers)
*
* @dataProvider internalHelpersdataProvider
*/
public function testSimpleHelpers(string $src, array $data, string $result): void
{
$helpers = new \Handlebars\Helpers();
$engine = new \Handlebars\Handlebars(array('helpers' => $helpers));

$engine = new \Handlebars\Handlebars();
$this->assertEquals($result, $engine->render($src, $data));
}

Expand Down Expand Up @@ -185,9 +182,7 @@ public function internalHelpersdataProvider(): array
*/
public function testDataVariables(string $src, array $data, string $result, bool $enableDataVariables): void
{
$helpers = new \Handlebars\Helpers();
$engine = new \Handlebars\Handlebars(array(
'helpers' => $helpers,
'enableDataVariables'=> $enableDataVariables,
));

Expand All @@ -203,7 +198,6 @@ public function testDataVariables1()
$object->{'@unknown'} = 'zucchini';
$data = ['data' => [$object]];
$engine = new \Handlebars\Handlebars(array(
'helpers' => new \Handlebars\Helpers(),
'enableDataVariables'=> false,
));
$template = "{{#each data}}{{@first}}, {{@last}}, {{@index}}, {{@unknown}}{{/each}}";
Expand Down

0 comments on commit 5f8a1e6

Please sign in to comment.