New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.3.0 #47

Merged
merged 74 commits into from Sep 25, 2016
Commits
Jump to file or symbol
Failed to load files and symbols.
+12 −10
Diff settings

Always

Just for now

Viewing a subset of changes. View all

Fix test: `testTopCommentParsingWithWhitespaceAtTheEnd`

  • Loading branch information...
emulienfou committed Sep 23, 2016
commit cfb4da2cebe7a141088204554311a50cd1122f1a
Copy path View file
@@ -2,6 +2,9 @@
/**
*/
/**
*/
namespace Dwoo\Tests
{
@@ -126,16 +129,15 @@ public function testMultipleVarsWithStringKey()
$this->assertEquals('12', $this->dwoo->get($tpl, array('foo' => array('bar' => 1, 'baz' => 2))));
}
// public function testTopCommentParsingWithWhitespaceAtTheEnd()
// {
// $tpl = new TemplateString('{* Foo *}
//aaa
//');
// $tpl->forceCompilation();
//
// $this->assertEquals('aaa
//', $this->dwoo->get($tpl, array()));
// }
public function testTopCommentParsingWithWhitespaceAtTheEnd()
{
$tpl = new TemplateString('{* Foo *}
aaa ');
$tpl->forceCompilation();
$this->assertEquals("
aaa ", $this->dwoo->get($tpl, array()));
}
public function testTopCommentParsingWithWhitespaceAtTheEndAndBeginning()
{
ProTip! Use n and p to navigate between commits in a pull request.