forked from phalcon/cphalcon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modified: php-tests/tests/Phalcon/Tag/UnitTest.php
- Loading branch information
Nikolaos Dimopoulos
committed
Apr 11, 2013
1 parent
cec4ae9
commit bfa6acb
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4852,4 +4852,62 @@ public function testTagHtmlName() | |
); | ||
} | ||
|
||
/** | ||
* Tests the tagHtml with name parameter and self close | ||
* | ||
* @author Nikos Dimopoulos <[email protected]> | ||
* @since 2013-04-04 | ||
*/ | ||
public function testTagHtmlNameSelfClose() | ||
{ | ||
$name = 'img'; | ||
$expected = '<img />'; | ||
$actual = PhTag::tagHtml($name, null, true); | ||
|
||
$this->assertEquals( | ||
$expected, | ||
$actual, | ||
sprintf($this->message, 'tagHtml bare') | ||
); | ||
} | ||
//&tag_parameters, &tag_self_close, &tag_only_start, &tag_eol) == FAILURE) { | ||
|
||
/** | ||
* Tests the tagHtml with name parameter and only start | ||
* | ||
* @author Nikos Dimopoulos <[email protected]> | ||
* @since 2013-04-04 | ||
*/ | ||
public function testTagHtmlNameOnlyStart() | ||
{ | ||
$name = 'aside'; | ||
$expected = '<aside>'; | ||
$actual = PhTag::tagHtml($name, null, null, true); | ||
|
||
$this->assertEquals( | ||
$expected, | ||
$actual, | ||
sprintf($this->message, 'tagHtml bare') | ||
); | ||
} | ||
|
||
/** | ||
* Tests the tagHtml with name parameter | ||
* | ||
* @author Nikos Dimopoulos <[email protected]> | ||
* @since 2013-04-04 | ||
*/ | ||
public function testTagHtmlNameEol() | ||
{ | ||
$name = 'aside'; | ||
$expected = '<aside></aside>' . PHP_EOL; | ||
$actual = PhTag::tagHtml($name, null, null, null, true); | ||
|
||
$this->assertEquals( | ||
$expected, | ||
$actual, | ||
sprintf($this->message, 'tagHtml bare') | ||
); | ||
} | ||
|
||
} |