Skip to content

Commit

Permalink
fix tests to pass on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed May 8, 2012
1 parent 69fa67e commit 5896d2d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
16 changes: 8 additions & 8 deletions tests/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ public function test_select_prep()
'key_""' => 'val_""',
)
);
$expected = '<select name="fieldname" id="form_fieldname">
<option value="key_H&amp;M" style="text-indent: 0px;">val_H&amp;M</option>
<option value="key_&quot;&quot;" style="text-indent: 0px;">val_&quot;&quot;</option>
</select>';
$expected = '<select name="fieldname" id="form_fieldname">'.PHP_EOL
.' <option value="key_H&amp;M" style="text-indent: 0px;">val_H&amp;M</option>'.PHP_EOL
.' <option value="key_&quot;&quot;" style="text-indent: 0px;">val_&quot;&quot;</option>'.PHP_EOL
.'</select>';
$this->assertEquals($expected, $output);
}

Expand Down Expand Up @@ -128,10 +128,10 @@ public function test_select_dont_prep()
'dont_prep' => true,
)
);
$expected = '<select name="fieldname" id="form_fieldname">
<option value="key_H&amp;M" style="text-indent: 0px;">val_H&amp;M</option>
<option value="key_&quot;&#39;&quot;" style="text-indent: 0px;">val_&quot;&#39;&quot;</option>
</select>';
$expected = '<select name="fieldname" id="form_fieldname">'.PHP_EOL
.' <option value="key_H&amp;M" style="text-indent: 0px;">val_H&amp;M</option>'.PHP_EOL
.' <option value="key_&quot;&#39;&quot;" style="text-indent: 0px;">val_&quot;&#39;&quot;</option>'.PHP_EOL
.'</select>';
$this->assertEquals($expected, $output);
}

Expand Down
18 changes: 8 additions & 10 deletions tests/html.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,19 +211,17 @@ public function test_lists()
$list = array('one', 'two');

$output = Html::ul($list);
$expected = '<ul>
<li>one</li>
<li>two</li>
</ul>
';
$expected = '<ul>'.PHP_EOL
.' <li>one</li>'.PHP_EOL
.' <li>two</li>'.PHP_EOL
.'</ul>'.PHP_EOL;
$this->assertEquals($expected, $output);

$output = Html::ol($list);
$expected = '<ol>
<li>one</li>
<li>two</li>
</ol>
';
$expected = '<ol>'.PHP_EOL
.' <li>one</li>'.PHP_EOL
.' <li>two</li>'.PHP_EOL
.'</ol>'.PHP_EOL;
$this->assertEquals($expected, $output);
}
}
Expand Down

0 comments on commit 5896d2d

Please sign in to comment.