Skip to content

Commit

Permalink
Update tests to reflect style-enforced newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner authored Sep 26, 2019
1 parent 2862800 commit 8f71991
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/system/View/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function testParseSimple()
$parser = new Parser($this->config, $this->viewsDir, $this->loader);
$parser->setVar('teststring', 'Hello World');

$expected = '<h1>Hello World</h1>';
$expected = "<h1>Hello World</h1>\n";
$this->assertEquals($expected, $parser->render('template1'));
}

Expand Down Expand Up @@ -887,7 +887,7 @@ public function testCachedRender()
$parser = new Parser($this->config, $this->viewsDir, $this->loader);
$parser->setVar('teststring', 'Hello World');

$expected = '<h1>Hello World</h1>';
$expected = "<h1>Hello World</h1>\n";
$this->assertEquals($expected, $parser->render('template1', ['cache' => 10, 'cache_name' => 'HelloWorld']));
// this second renderings should go thru the cache
$this->assertEquals($expected, $parser->render('template1', ['cache' => 10, 'cache_name' => 'HelloWorld']));
Expand All @@ -900,7 +900,7 @@ public function testRenderFindsView()
$parser = new Parser($this->config, $this->viewsDir, $this->loader);
$parser->setData(['testString' => 'Hello World']);

$expected = '<h1>Hello World</h1>';
$expected = "<h1>Hello World</h1>\n";
$this->assertEquals($expected, $parser->render('Simpler'));
}

Expand All @@ -921,7 +921,7 @@ public function testRenderSavingData()
$parser = new Parser($this->config, $this->viewsDir, $this->loader);
$parser->setData(['testString' => 'Hello World']);

$expected = '<h1>Hello World</h1>';
$expected = "<h1>Hello World</h1>\n";
$this->assertEquals($expected, $parser->render('Simpler', [], true));
$this->assertArrayHasKey('testString', $parser->getData());
$this->assertEquals($expected, $parser->render('Simpler', [], false));
Expand Down

0 comments on commit 8f71991

Please sign in to comment.