-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab1a6ab
commit 969b205
Showing
5 changed files
with
14 additions
and
14 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
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
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
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
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 |
---|---|---|
|
@@ -46,8 +46,8 @@ public function testUrlFilter($value, $expected) | |
public function dataUrlTags() | ||
{ | ||
return array( | ||
array('[url]http://example.org[/url]','<a href="http://example.org">http://example.org</a>'), | ||
array('[url="http://example.com"]Example[/url]','<a href="http://example.com">Example</a>'), | ||
array('[url]http://example.org[/url]', '<a href="http://example.org">http://example.org</a>'), | ||
array('[url="http://example.com"]Example[/url]', '<a href="http://example.com">Example</a>'), | ||
); | ||
} | ||
|
||
|
@@ -65,8 +65,8 @@ public function testImgFilter($value, $expected) | |
public function dataImgTags() | ||
{ | ||
return array( | ||
array('[img]http://github.com/picture.jpg[/img]','<img src="http://github.com/picture.jpg" alt="" />'), | ||
array('[img width="500"]http://github.com/picture.jpg[/img]','<img width="500" src="http://github.com/picture.jpg" alt="" />'), | ||
array('[img]http://github.com/picture.jpg[/img]', '<img src="http://github.com/picture.jpg" alt="" />'), | ||
array('[img width="500"]http://github.com/picture.jpg[/img]', '<img width="500" src="http://github.com/picture.jpg" alt="" />'), | ||
); | ||
} | ||
|
||
|
@@ -84,7 +84,7 @@ public function testQuoteFilter($value, $expected) | |
public function dataQuoteTags() | ||
{ | ||
return array( | ||
array('[quote]text[/quote]','text'), | ||
array('[quote]text[/quote]', 'text'), | ||
); | ||
} | ||
|
||
|
@@ -102,8 +102,8 @@ public function testStrict($value, $expected) | |
public function dataStrict() | ||
{ | ||
return array( | ||
array('[url]http://example.org[/url]','<a href="http://example.org">http://example.org</a>'), | ||
array('[url=http://example.com]Example[/url]','<a href="http://example.com">Example</a>'), | ||
array('[url]http://example.org[/url]', '<a href="http://example.org">http://example.org</a>'), | ||
array('[url=http://example.com]Example[/url]', '<a href="http://example.com">Example</a>'), | ||
); | ||
} | ||
|
||
|
@@ -179,8 +179,8 @@ public function dataDefaultFilterSet() | |
array('[sub]subscript[/sub]', '<sub>subscript</sub>'), | ||
array('[sup]superscript[/sup]', '<sup>superscript</sup>'), | ||
array('[abbr="Object relational mapper"]ORM[/abbr]', '<abbr title="Object relational mapper">ORM</abbr>'), | ||
array('[url]http://example.org[/url]','<a href="http://example.org">http://example.org</a>'), | ||
array('[url="http://example.com"]Example[/url]','<a href="http://example.com">Example</a>'), | ||
array('[url]http://example.org[/url]', '<a href="http://example.org">http://example.org</a>'), | ||
array('[url="http://example.com"]Example[/url]', '<a href="http://example.com">Example</a>'), | ||
array('[email][email protected][/email]', '<a href="mailto:email@domain.com">email@domain.com</a>'), | ||
); | ||
} | ||
|