Skip to content

Commit

Permalink
fixed setLocale test, code was fine, the test was wrong.
Browse files Browse the repository at this point in the history
  • Loading branch information
TRPB committed Mar 12, 2018
1 parent b0adb60 commit e1f618d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/TransphpormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1647,9 +1647,9 @@ public function testRuleWithNewline() {
public function testCommentBlock() {

$tss = 'div {content: "foo"}
/*.comment {foo: bar} */
span {content: "bar"}
';

Expand Down Expand Up @@ -1769,7 +1769,7 @@ public function testSetLocale() {
$template2 = new \Transphporm\Builder($xml, $tss);
$template2->setLocale('enUS');

$this->assertEquals('<div>' . date('m/d/Y') . '</div>', $template1->output()->body);
$this->assertEquals('<div>' . date('m/d/Y') . '</div>', $template2->output()->body);
}

public function testDebugOutput() {
Expand Down Expand Up @@ -1798,7 +1798,7 @@ public function testGreater() {
$template = new Builder($xml, $tss);

$this->assertEquals('<div><span class="one"></span><span class="two">true</span></div>', $this->stripTabs($template->output()->body));

}

public function testLess() {
Expand All @@ -1814,7 +1814,7 @@ public function testLess() {
$template = new Builder($xml, $tss);

$this->assertEquals('<div><span class="one">true</span><span class="two"></span></div>', $this->stripTabs($template->output()->body));

}

public function testFillSelect() {
Expand All @@ -1837,7 +1837,7 @@ public function testFillSelect() {

$this->assertEquals($this->stripTabs('<select><option value="01">January</option>
<option value="02">Februrary</option>
<option value="03">March</option></select>'), $this->stripTabs($output));
<option value="03">March</option></select>'), $this->stripTabs($output));

}

Expand All @@ -1846,10 +1846,10 @@ public function testFillSelect() {
public function testFillSelectWithNull() {
$xml = '<select><option></option></select>';

$tss = 'select option {repeat: data(options); }
$tss = 'select option {repeat: data(options); }
select option { content: iteration(); }
select option:attr(value) { content: key(); }
';

$template = new Builder($xml, $tss);
Expand All @@ -1865,7 +1865,7 @@ public function testFillSelectWithNull() {

$this->assertEquals($this->stripTabs('<select><option value="0"></option><option value="01">January</option>
<option value="02">Februrary</option>
<option value="03">March</option></select>'), $this->stripTabs($output));
<option value="03">March</option></select>'), $this->stripTabs($output));

}

Expand All @@ -1891,7 +1891,7 @@ public function testKeyBeforeIteration() {

$this->assertEquals($this->stripTabs('<select><option value="01">January</option>
<option value="02">Februrary</option>
<option value="03">March</option></select>'), $this->stripTabs($output));
<option value="03">March</option></select>'), $this->stripTabs($output));

}

Expand All @@ -1917,7 +1917,7 @@ public function testRepeatAtEnd() {

$this->assertEquals($this->stripTabs('<select><option value="01">January</option>
<option value="02">Februrary</option>
<option value="03">March</option></select>'), $this->stripTabs($output));
<option value="03">March</option></select>'), $this->stripTabs($output));

}

Expand Down

0 comments on commit e1f618d

Please sign in to comment.